bradleyayers | any plans to add a "restart delay <seconds>" stanza? | 04:39 |
---|---|---|
bradleyayers | i'd love one. | 04:39 |
SpamapS | bradleyayers: you can fake it with script stanzas | 04:56 |
SpamapS | if [ -z "$UPSTART_JOB" ] ; then sleep 1 ; fi | 04:56 |
SpamapS | $UPSTART_JOB will only be set on automatic start | 04:56 |
bradleyayers | what's -z? | 04:56 |
bradleyayers | ah | 04:56 |
SpamapS | -z is a test for empty string | 04:57 |
bradleyayers | what's automatic start? | 04:57 |
bradleyayers | as opposed to what | 04:57 |
SpamapS | actually I'm not 100% sure on restart it won't still be set | 04:57 |
SpamapS | automatic as in, as a result of 'start on' | 04:57 |
bradleyayers | also pre-start failures dont result in respawn | 04:57 |
bradleyayers | which was unexpected to me | 04:57 |
SpamapS | its by design | 04:58 |
SpamapS | pre-start is supposed to be the gatekeeper | 04:58 |
SpamapS | respawn should only happen when a thing expected to work fails | 04:58 |
bradleyayers | yeah that's reasonable | 04:59 |
bradleyayers | i just didn't expect it | 04:59 |
bradleyayers | thanks for responding :D | 05:00 |
bradleyayers | this place is quiet | 05:00 |
SpamapS | at times | 05:00 |
bradleyayers | would a "respawn delay" stanza be welcomed? | 05:01 |
SpamapS | Well you're the first to ever ask for it | 05:01 |
SpamapS | but I doubt a patch would be rejected | 05:01 |
bradleyayers | there was a post to the mailing list in 2010 about it | 05:02 |
bradleyayers | http://osdir.com/ml/upstart-devel/2010-08/msg00007.html | 05:02 |
SpamapS | bradleyayers: its probably more desirable that your service get smarter about being stopped/started rapidly | 05:02 |
bradleyayers | hmm | 05:02 |
SpamapS | bradleyayers: I'd suggest pre-stop but I think there's a bug that prevents those from running on restart | 05:04 |
bradleyayers | hmm | 05:17 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!