/srv/irclogs.ubuntu.com/2013/11/30/#upstart.txt

wralej1can a task restart itself ?  that is, if i exec something which exits zero, can i use upstart to completely run it, over and over, without respawning on exit non-zero?01:30
xnoxwralej1: see "respawn" stanza in $ man 5 init, or cookbook02:04
wralej1xnox:  i read the respawn section again.  the first time around, i got the impression that the respawn stanza causes a task restart only on a non-zero exit.. now, i'm not so sure.. the cookbook doesn't say explicitly.. it says: "Likewise, for tasks, (see below), respawning means that you want that task to be retried until it exits with zero (0) as its exit code."02:09
xnoxwralej1: "task" is also a stanza and has special meaning ;-)02:13
xnoxwralej1: maybe you want to define which "exit" codes you consider normal, and which abnormal.02:13
xnox"normal exit"02:14
wralej1xnox: i see.. i'm going to look at the source code.. i gather respawn must not make the non-zero assumption for tasks, at least02:14
wralej1yes, that would be my preference.. defining02:14
xnoxwralej1: man page is more clear "exit 0 || stop" is to finish, and not respawn. So you could guard exits, and call "stop" when/where needed as well.02:16
wralej1xnox: awesome.. i'll look at the man page.. thanks for the help02:17
xnoxwralej1: no problem =)02:18

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