failure when starting with expect stop doesn't respawn, but logs it will

Bug #1270348 reported by Tom Most
12
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.

Revision history for this message
Tom Most (tomwm) wrote :
Revision history for this message
Tom Most (tomwm) wrote :

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in upstart (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.