failure when starting with expect stop doesn't respawn, but logs it will
Bug #1270348 reported by
Tom Most
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
New
|
Undecided
|
Unassigned | ||
upstart (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Consider this job (also attached):
script
sleep 10
exit 1
end script
expect stop
respawn
If started this will pause for 10 seconds, then print "started/running" state:
$ sudo initctl start bug
bug start/running
However, it is recorded as failed in syslog:
Jan 17 19:20:26 localhost kernel: [276823.832916] init: bug main process (11410) terminated with status 1
Jan 17 19:20:26 localhost kernel: [276823.832930] init: bug main process ended, respawning
But it isn't running, didn't actually respawn, and never does.
To post a comment you must log in.
Oh, and this:
$ aptitude show upstart
...
Version: 1.5-0ubuntu7.2
...
Architecture: amd64
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise