/srv/irclogs.ubuntu.com/2012/08/26/#upstart.txt

kontinuityhi all05:55
kontinuitycan someone please explain to me what run level [23] means? I thought there were 605:55
kontinuityI see it in the cookbooks and all examples05:56
pulzwhats 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 subject12:14
pulzim assuimg this is beacuse the process crashes before upstart gets a pid to track, but is there any workaround ? 12:18
yatesykontinuity: 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:58
kontinuityyatesy: either 2 or 3 makes sense instead of 23 but what does 2 or 3 mean? when will it execute?13:59
yatesykontinuity: if you have "start on runlevel [23]" then the job will be started when the system is in runlevel 2 OR 315:00
yatesykontinuity: see http://upstart.ubuntu.com/cookbook/#runlevels15:01
kontinuityyatesy: thanks!15:10
SpamapSpulz: are you using 'expect fork' ?17:29
SpamapSpulz: it is very problematic if the process does not fork the way upstart expects it to17:30
SpamapSpulz: 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 anything17:31
pulzSpamapS: im using expect fork, and im not getting an pid at startup either19:05
pulzso it dies to fast19:05
pulzexpect daemon yields the same results 19:33
JanCif you can run it without forking, that simplifies things19:40
pulzJanC: what are you thinking about ?19:46
JanCpulz: some applications have an option to not run in the background (so no fork), which might make it easier to debug19:49
pulzJanC: im telling it to daemonize 19:50
pulzso im open for tips for how to debug it19:51
JanCtry not to daemonize it19:51
JanCand remove any expect fork/daemon stanzas19:51
pulzthat helped19:52
pulznow it gave me a pid19:52
pulzatleast19:52
pulzand its giving me the correct info19:52
JanCmaybe using start-stop-daemon as a helper19:53
JanCbut indeed, it should not lose track of the correct PID when doing that19:53
pulzhmm should it still use expect daemon ?19:55
JanCif it doesn't fork: no19:56
JanCexpect daemon = expect double fork IIRC19:56
pulzah19:56
pulzwhats the best way to double check it ?19:57
pulzwhen using start-stop-daemon as helper and deamon values to the app seems to be working, but is it the correct way to work 19:57

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