> After "initctl start false", this job will respawn forever, because
> the default spawn limit of "10 5" does not consider jobs that
> take one second to be runaway jobs, even if they always fail.

Yes, because there's no magic value for the respawn limit that would
allow upstart to automatically detect failing jobs in all cases.  Thus,
the current value is equally correct as any other for this purpose, and
won't be changed.

The primary purpose of having a default respawn limit is to put the
brakes on runaway jobs.  A job that sleeps for a second and then
respawns is not going to kill your system, so upstart doesn't need to
intervene.

> with that job still respawning, uncomment the respawn limit line.
> It will continue respawning forever. Wasn't upstart supposed to watch config 
> files?

Upstart does watch the config files, but the new config is only
*applied* once the job is *stopped* (you wouldn't want a rewrite of a
job file while the job is running to result in the wrong post-stop
script being run for the current service).  Since this job is
respawning, it's never actually stopped and the config changes are not
applied.  'stop $service && start $service' should be sufficient to
reset.

> watching syslog only tells you that a job ended with status 1 and is being 
> respawned.
> It would be lovely if that line showed how much of the spawn limit was left, 
> to give
> upstart novices a little help in understanding what's going on.

This is the only part that seems to be a real actionable issue in
upstart.

** Changed in: upstart (Ubuntu)
   Importance: Undecided => Wishlist

** Summary changed:

- respawn behavior confusing, default limit insufficient
+ upstart should log better when respawning to help the admin understand what's 
happening

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1210242

Title:
  upstart should log better when respawning to help the admin understand
  what's happening

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1210242/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to