[01:30] <wralej1> can 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?
[02:04] <xnox> wralej1: see "respawn" stanza in $ man 5 init, or cookbook
[02:09] <wralej1> xnox:  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:13] <xnox> wralej1: "task" is also a stanza and has special meaning ;-)
[02:13] <xnox> wralej1: maybe you want to define which "exit" codes you consider normal, and which abnormal.
[02:14] <xnox> "normal exit"
[02:14] <wralej1> xnox: i see.. i'm going to look at the source code.. i gather respawn must not make the non-zero assumption for tasks, at least
[02:14] <wralej1> yes, that would be my preference.. defining
[02:16] <xnox> wralej1: 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:17] <wralej1> xnox: awesome.. i'll look at the man page.. thanks for the help
[02:18] <xnox> wralej1: no problem =)