[05:55] hi all [05:55] can someone please explain to me what run level [23] means? I thought there were 6 [05:56] I see it in the cookbooks and all examples [12:14] whats the best way to find out why upstart report wrong status for my service (it says running but it has crashed) having trouble finding proper doc on this subject [12:18] im assuimg this is beacuse the process crashes before upstart gets a pid to track, but is there any workaround ? [13:58] kontinuity: to answer your earlier question, i think it refers to level 2 OR 3 (rather than 23 which as you say doesn't exist) [13:59] yatesy: either 2 or 3 makes sense instead of 23 but what does 2 or 3 mean? when will it execute? [15:00] kontinuity: if you have "start on runlevel [23]" then the job will be started when the system is in runlevel 2 OR 3 [15:01] kontinuity: see http://upstart.ubuntu.com/cookbook/#runlevels [15:10] yatesy: thanks! [17:29] pulz: are you using 'expect fork' ? [17:30] pulz: it is very problematic if the process does not fork the way upstart expects it to [17:31] pulz: if status shows a pid that does not exist, then its possible that your process needs to use 'expect daemon', or perhaps shouldn't even use expect anything [19:05] SpamapS: im using expect fork, and im not getting an pid at startup either [19:05] so it dies to fast [19:33] expect daemon yields the same results [19:40] if you can run it without forking, that simplifies things [19:46] JanC: what are you thinking about ? [19:49] pulz: some applications have an option to not run in the background (so no fork), which might make it easier to debug [19:50] JanC: im telling it to daemonize [19:51] so im open for tips for how to debug it [19:51] try not to daemonize it [19:51] and remove any expect fork/daemon stanzas [19:52] that helped [19:52] now it gave me a pid [19:52] atleast [19:52] and its giving me the correct info [19:53] maybe using start-stop-daemon as a helper [19:53] but indeed, it should not lose track of the correct PID when doing that [19:55] hmm should it still use expect daemon ? [19:56] if it doesn't fork: no [19:56] expect daemon = expect double fork IIRC [19:56] ah [19:57] whats the best way to double check it ? [19:57] when using start-stop-daemon as helper and deamon values to the app seems to be working, but is it the correct way to work