/srv/irclogs.ubuntu.com/2012/07/16/#upstart.txt

bradleyayersany plans to add a "restart delay <seconds>" stanza?04:39
bradleyayersi'd love one.04:39
SpamapSbradleyayers: you can fake it with script stanzas04:56
SpamapSif [ -z "$UPSTART_JOB" ] ; then sleep 1 ; fi04:56
SpamapS$UPSTART_JOB will only be set on automatic start04:56
bradleyayerswhat's -z?04:56
bradleyayersah04:56
SpamapS-z is a test for empty string04:57
bradleyayerswhat's automatic start?04:57
bradleyayersas opposed to what04:57
SpamapSactually I'm not 100% sure on restart it won't still be set04:57
SpamapSautomatic as in, as a result of 'start on'04:57
bradleyayersalso pre-start failures dont result in respawn04:57
bradleyayerswhich was unexpected to me04:57
SpamapSits by design04:58
SpamapSpre-start is supposed to be the gatekeeper04:58
SpamapSrespawn should only happen when a thing expected to work fails04:58
bradleyayersyeah that's reasonable04:59
bradleyayersi just didn't expect it04:59
bradleyayersthanks for responding :D05:00
bradleyayersthis place is quiet05:00
SpamapSat times05:00
bradleyayerswould a "respawn delay" stanza be welcomed? 05:01
SpamapSWell you're the first to ever ask for it05:01
SpamapSbut I doubt a patch would be rejected05:01
bradleyayersthere was a post to the mailing list in 2010 about it 05:02
bradleyayershttp://osdir.com/ml/upstart-devel/2010-08/msg00007.html05:02
SpamapSbradleyayers: its probably more desirable that your service get smarter about being stopped/started rapidly05:02
bradleyayershmm05:02
SpamapSbradleyayers: I'd suggest pre-stop but I think there's a bug that prevents those from running on restart05:04
bradleyayershmm05:17

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!