[19:38] hello, I have a problem with upstart on Ubuntu 12.04 [19:39] even though I submitted a "respaw" stanza, if the program terminate somehow, upstart won't reload it [19:42] there's no script and only one "exec" stanzas... [19:54] anyone ? [20:01] nanvou: respawn only respawns on abnormal exit [20:01] nanvou: make sure you read the respawn section carefully in 'man 5 init' [20:02] process exits with 139 [20:02] nanvou: nothing in syslog about it? [20:03] yes [20:03] it syslog says it segfault [20:03] which is normal [20:03] nanvou: segfault is also a reason to respawn (SIGSEGV) [20:04] what isn't normal is that segfault is detected by system but upstart won't do anything about it and let the program stay stopped [20:04] nanvou: it is not marked 'task' right? and there's no 'normal exit' stanza? [20:04] I ran the program manually. It does SEGFAUT with status code "139" [20:05] SpamapS, http://paste.ubuntu.com/5623801/ [20:06] nanvou: indeed, upstart should be respawning that on segfault [20:06] nanvou: and syslog says, exactly? [20:06] "kernel: [4526394.732639] segfaultest[25199]: segfault at fffffff7 ip bf9e085c sp bf9e085c error 4 [20:07] " [20:07] thats kernel [20:07] nanvou: upstart would log as init: [20:08] nanvou: if the program is daemonizing before the segfault, you don't have 'expect fork', so upstart will lose track of it [20:08] in fact it doesn't daemonize at all [20:12] nanvou: initctl log-priority info should show more of what init: is doing [20:13] where should I wait for logs ? [20:14] syslog [20:19] SpamapS, http://paste.ubuntu.com/5623839/ [20:20] nanvou: hah, so it did respawn [20:20] nanvou: eventually it gave up, respawning too fast [20:21] ah ok [20:21] so how do I imply some waiting time ? [20:25] can I use multiple exec statement N [20:25] *? [20:25] like "exec sleep 10" ? [20:26] nanvou: respawn limit [20:26] nanvou: man 5 init explains it [20:27] yes, but I don't want to limit the respawns themselves, more like the time between the respawns [20:27] nanvou: ah, post-start I think can achieve that. What is the point tho? [20:28] nanvou: if you have a program this unstable.... [20:28] I'll make it better in the future [20:28] yeah but upstart is not the answer [20:29] right now, I just need upstart to be able to respawn it not too fast [20:29] nanvou: just make a wrapper that always respawns it [20:29] mmh [20:29] the upstart respawning is for *unexpected* fail [20:29] yes, that sounds like a possibility [20:49] SpamapS, thanks for the help [20:50] nanvou: any time