/srv/irclogs.ubuntu.com/2011/05/05/#upstart.txt

radixfor what it's worth, 'stop cron' does actually kill the cron process (as does 'restart cron', though that one doesn't bring it back up)00:13
radixso it's communicating enough that it can do its job, but then not cleaning up properly or continuing to further steps, I guess00:13
radixfor what it's worth, --verbose doesn't seem to write anything when running stop / restart at runtime, though I do see all the console output at first run00:35
radixer, at boot00:35
=== JanC_ is now known as JanC
radixdid anyone get around to looking at those strace outputs I pastebined yesterday?18:39
steffen_bhi there18:58
steffen_bsearching for some helping hand of shutdown 18:58
steffen_bwith natty 18:59
steffen_b+ debugging 18:59
steffen_bproblem is that a handfull of services is not shutdown 19:00
JanCdefine "not shutdown"19:04
steffen_bits stopped on runlevel 19:06
steffen_b01619:06
steffen_band i can see until very late in shutdown process normal messages19:06
steffen_bof the daemon 19:06
steffen_bit doesnt do any shutdown messages 19:07
steffen_bstopping plugins19:07
steffen_bor anything 19:07
steffen_band late in the boot 19:07
steffen_bi get stopped with status 1 19:07
steffen_bi.e.19:08
steffen_bopenbox main process (1273) terminated with status 119:08
JanCI doubt openbox is handled by upstart?19:09
Keybukwith that message, I'd say it is19:10
steffen_bin my install it is19:10
steffen_bi written the job ;) 19:10
JanCif you are doing such a customized setup, why use runlevels?19:11
steffen_bnice try ;) 19:11
steffen_bstop on runlevel [016]19:11
steffen_bis openbox also others which look the same19:12
steffen_bthe system is ubuntu natty , customized 19:12
JanCheh19:12
steffen_bi dont want to customize everything only the part which we care 19:13
steffen_bthats why we base it on ubuntu 19:13
steffen_bi put a test job in to see if the runlevel come 19:13
steffen_band that one is executed fine19:14
JanCis X also started by upstart?19:14
steffen_bthe openbox job starts X 19:14
steffen_bxinit openbox basically19:14
JanCso it's probably X that exits with status 1 ?19:15
steffen_bi dont debug that one job 19:16
steffen_bits maybe 10 19:16
steffen_ball show the same behaviour 19:16
steffen_ball working fine on lucid19:16
JanCdid you check the PID is actually correct?19:19
steffen_bbelieve me the jobs are working 19:20
steffen_bMay  5 19:12:47 vdr init: plymouth-stop pre-start process (1269) terminated with status 119:20
steffen_bMay  5 19:12:47 vdr init: plymouth-splash main process (1328) terminated with status 119:20
steffen_bMay  5 19:39:45 vdr init: vdr-frontend main process (1437) terminated with status 14319:20
steffen_bMay  5 19:39:45 vdr init: udisks-automounter main process (1594) terminated with status 14319:20
steffen_bMay  5 19:39:45 vdr init: plymouth-upstart-bridge main process (2186) terminated with status 119:20
steffen_bMay  5 19:39:45 vdr init: irexec main process (2245) terminated with status 119:20
steffen_bthis terminated with status 1 doesnt look normal 19:20
steffen_band is also not happening each boot 19:21
steffen_bso something strange is happening in the shutdown 19:21
JanCdoesn't seem to happen on a "normal" natty system either?19:22
steffen_blooks like something in the shutdown is killing the jobs while they are active 19:23
steffen_bMay  5 19:39:45 vdr init: irexec main process (2245) terminated with status 119:23
steffen_bMay  5 19:39:45 vdr init: irexec main process (2246) terminated with status 119:23
steffen_bMay  5 19:39:45 vdr init: irexec main process (2247) terminated with status 119:23
steffen_bif you look at this 19:23
steffen_bi don't have a "normal" natty 19:24
steffen_bbut i can check that 19:25
steffen_bi would rather debug whats happening 19:25
steffen_bthen trying empiric if it's my fault or ubuntus ;)19:25
JanCwait, I'm seeing things like "Apr 28 13:47:16 saeko init: plymouth-stop pre-start process (3747) terminated with status 1" too here19:31
steffen_bor maybe coming from the other side 19:31
steffen_bif upstart is using dbus for handling the jobs, how can upstart shutdown dbus ?19:32
JanCupstart only uses dbus for communication with dbus clients19:32
JanCand it doesn't need the dbus daemon19:32
JanCfor communication with upstart clients I mean19:33
steffen_bk , so initctl uses 19:33
JanCthings like initctl19:33
steffen_bsomething else19:33
steffen_bnot dbus19:33
JanCdbus is a wire protocol, you can use dbus without a dbus daemon  ;)19:34
steffen_bwell on lucid i tried to send signals in init.d scripts and they got plain ignored back then 19:35
JanCusing initctl?19:35
steffen_bnow it looks like runlevel [016] gets ignored 19:35
steffen_byes19:35
steffen_bwhich one gets ignored seems to be random/depending on time 19:36
JanCthat's weird19:36
steffen_bmy requirement is to cleanly shutdown the daemon 19:36
steffen_bnothing should kill it before it is finished19:37
JanCyou have a pre-stop script for that?19:39
steffen_bno19:40
steffen_bonly post start 19:40
JanCdefault way to stop a job is to send SIGTERM, then after some time-out send SIGKILL, so if shutdown of your service takes longer, you'll need a pre-stop to handle this gracefully I think?19:42
steffen_bhttps://bugs.yavdr.com/projects/yavdr/repository/entry/trunk/base/yavdr-base/etc/init/vdr.conf19:42
steffen_bbut pre-stop would wait until this is finished 19:43
steffen_bbefore actually stopping it 19:43
steffen_bpre-stop ->  kill with SIGTERM vdr doesn't sound right to me  19:45
steffen_balso it wouldnt help if something would kill it 19:46
steffen_bfrom init.d19:46
steffen_bi can not believe that natty shutdown is so fucked up or handcrafted for the 5 known use cases 19:48
steffen_bsry 19:52
JanCI don't know what exactly goes wrong with your setup, but when using pre-stop for a job you can tell it to shut down and wait until it's ready, after that upstart will see no SIGTERM/SIGKILL is needed for that job anymore20:05
JanCbut maybe you want to know what goes wrong first...20:06
steffen_bthere are 2 issues 20:08
steffen_bfirst is that runlevel is not coming or sendsigs is coming to fast  20:08
steffen_bsecond is waiting for the daemon to finish20:09
steffen_bthe pre-stop might be nice workaround 20:09
steffen_bbut worth nothing if rc and those sendsigs is killing the jobs20:10
akioHello, I have finally figured out how to handle a broken serial port and got console redirection working but I don't know where to put the fix.20:10
steffen_bon the other hand that should ignore everything which is handled by upstart20:11
akioI have a ttyS0.conf in /etc/init that starts it for me, but before it starts it needs to be manually configured with setserial.20:11
akioI was wondering where to put the setserial command.20:11
steffen_bcreate a setserial.conf 20:11
steffen_bstart on starting ttys0 20:12
steffen_bttyS020:12
akioOh cool thanks.20:12
steffen_bhttps://bugs.yavdr.com/projects/yavdr/repository/entry/trunk/base/yavdr-base/etc/init/setserial-minimal.conf20:13
akioMan upstart really has made GNU\Linux better in a big way for me.20:13
akioToo complicated for me to follow.20:14
steffen_bits cool, but causing me headaches sometimes 20:14
akioMakes boot super fast.20:14
steffen_bif its just for you , just but the commands you need in the script section ;) 20:15
steffen_bstart on starting ttyS0 20:15
steffen_bwill make it wait until that is finished20:15
steffen_byou might need to put task keyword also in 20:16
SpamapSyes, otherwise it won't block properly20:16
SpamapStask makes it block until the job has completed the whole lifecycle20:17
akiowhere does task go?20:20
SpamapSon its own line20:21
SpamapSanywhere tho20:21
akiohttp://pastebin.com/AHPTn0GW20:22
steffen_byes should work 20:23
akiorebeaut!20:23
akiosteffen_b: Thank you. That worked like a charm.21:39
akioBecause charms work well.21:39
steffen_bcool :) 21:39
akioHad an issue last night and couldn't console because previous admin couldn't figure it out.21:39

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