Respawn needs a retry time
Scott James Remnant
scott at netsplit.com
Tue Jun 17 12:33:48 BST 2008
On Sun, 2008-06-15 at 15:06 +0200, Marius Karthaus wrote:
> I feel I'm missing an option for respawn: the retry time.
>
> If I define a service in upstart, it will try to respawn the service
> with the set limits, for instance (default) by retrying 10 times in 5
> seconds. Now let's assume that a program is unable to start because of
> whatever reason during just 1 second. In that time, depending on how
> fast the program exits it will be tried 10 times and the program will
> never ever be started again by upstart. To me this is bad behavior.
> I think upstart should try a couple of times, complain that it is unable
> to start the process, wait for some time for the problem to be sorted
> out and try to respawn again.
>
> So I propose a third option to the respawn stanza, the retry time. That
> way we can define a much more sensible respawn strategy.
>
A third option, or a "respawn retry" stanza?
Would not be hard to do, and would be a good miniature project for
someone.
Patches welcome :-)
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20080617/a8f7651f/attachment.pgp
More information about the upstart-devel
mailing list