reacting to respawn giving up?

Scott James Remnant scott at netsplit.com
Tue Dec 1 20:01:27 GMT 2009


On Tue, 2009-12-01 at 21:46 +0200, Janne Karhunen wrote:

> On Tue, Dec 1, 2009 at 8:14 PM, Scott James Remnant <scott at netsplit.com> wrote:
> 
> > This means that you could just do (as a file in /etc/init):
> >
> >        start on stopped $JOB RESULT=failed PROCESS=respawn
> >        exec /sbin/reboot
> 
> Duh, knew it could be done with 'stopped' but it sounded
> like a hack as it would have to be defined outside of the
> given script. Moreover, is there a limit on how many
> 'start on' conditions you can have?
> 
You can only have one, but you can use "or" ;-)

> Anyhoo, I'll send you setuid / setgid patches next. You
> have another hack in your sleeve for those :-) ?
> 
Which were those?

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: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20091201/8eaa7ddd/attachment.pgp 


More information about the upstart-devel mailing list