/srv/irclogs.ubuntu.com/2011/01/17/#upstart.txt

=== ion_ is now known as ion
=== JanC_ is now known as JanC
djszapihow about Keybuk ? :)09:09
=== apw` is now known as apw
djszapiwhere does upstart not print the process ID in few cases ?11:49
djszapis/where/why/11:50
djszapiprocess id with exec lines and no process id with script lines ?11:53
ionIt always tells the pid it’s tracking.12:28
djszapiwhat do you mean ion ?12:29
djszapisysconfig-middle start/running12:33
djszapigconfd start/running, process 43812:33
djszapiI have got lines like this, one of them with no PID.12:33
ionsysconfig-middle probably has no main process.12:44
djszapihow can that be ?12:45
djszapisome main process should be in any case, at least I thought that way :o12:46
ionNope, it’s optional.12:46
djszapiI thought a tool is run from script section or with exec.12:47
djszapiand there is a main process in both cases.12:47
ionyes12:47
djszapiI am confused then :-S12:47
djszapiWhat other way is there ?12:48
ionscript/exec is optional.12:48
djszapiis, but both have main process.12:48
djszapiMy another issue is that when I try to enable the "--verbose" boot command-line option then I do not get this kind of messages (we discussed on Friday): Jan 14 14:52:49 deathspank init: tty6 main process (8557).12:52
ionsysconfig-middle doesn’t seem to have a main process, judging from the fact that what you pasted from initctl status/list says so.12:54
ionTry initctl log-priority [PRIORITY]12:55
djszapiwell, it should do the same like verbose.12:55
djszapi"initctl log-priority warn"12:55
djszapibut tried it out, did not help.13:00
djszapiI definitely think what was run from a script section that does not have PID as said in the beginning.13:02
djszapibut that is why they should have in warn, verbose mode a 'Jan 14 14:52:49 deathspank init: tty6 main process (8557)'-like entry which I do not have...13:06
djszapiso it should show the PID of the shell, ttyS6 oslt.13:11
djszapifor example: sysconfig-middle has a parent process and I would like to know that's PID.13:22
djszapi* obviously has13:23
djszapiany idea anybody, please ?14:41
robs_hi14:50
robs_I have a problem with upstart "stop" and "start" commands inside a 10.04 Vserver Guest14:51
robs_it seems it's the same problem outlined here14:51
robs_ http://www.freak-search.com/de/thread/2643371/vserver_problems_installing_ubuntu_10.10_as_a_guest_of_a_debian_host14:51
robs_I have the same problem (ie stop "service" or start "service" hangs), this is the debug I get from "stop dbus" inside a ubuntu 10.04 guest: http://pastebin.com/AjA2sAKG14:52
JanCrobs_: issues with upstart inside a vserver are a known problem15:06
robs_JanC: following http://linux-vserver.org/Upstart_issues the machine boots and halts just fine15:07
robs_JanC: only "start" and "stop" hang15:07
djszapiI cannot believe I need to use audit or other kernellevel stuff directly to get the PID of the parent for a command that was run from the script field of upstart.15:10
djszapiit just seems a bit khm.. :)15:10
djszapi* upstart configuration file.15:10
djszapino idea why it cannot be the part of upstart :(15:11
JanCdjszapi: are you sure the main script is still running?15:11
djszapihow does that matter ?15:12
djszapisyslog entry should be done when it runs ?15:12
JanCand upstart is not 1.0 yet, some features are still on the TODO list  ;)15:12
djszapiI know but I have been told on Friday it is possible with verbose cli boot parameter15:12
djszapiand it seems that statement 1) was not true 2) I do somehing wrong15:13
djszapiJanC: do you have any idea ?15:17
djszapiKeybuk mentioned me on Friday: with verbose I should get like: Jan 14 14:52:49 deathspank init: tty6 main process (8557)  in syslog15:18
djszapiwhere tty6 is the 'sh' where the command was run from.15:18
djszapifrom the upstart config file's script entry.15:18
djszapibtw, where is it the best to ask questions if this channel is not OK for that ?15:39
JanCdjszapi: all the jobs I see with start/running and no PID are jobs that have no main exec/script, but only pre/post-start/stop15:40
JanCand this channel is fine for asking questions, alternatively you can try the mailing list15:40
djszapiwell I did not still get any answer.15:41
djszapifrom this morning.15:41
djszapithe question is still the same, how can I get the process id of the parent ?15:42
djszapiwherever it was run from, let it be pre/post-start/stop15:42
JanCare you sure it is still running?15:43
djszapiI need the pid when it was running.15:44
djszapiaegis-loader:191,sh:188,init:1 -> that is the call tree15:45
djszapiand I would like to get 188 back.15:45
djszapiaegis start/running15:45
djszapiaegis.conf run the aegis-loader in a post-start like way15:45
djszapibut I need to know the PID of the parent ('sh')15:46
djszapido you understand ?15:46
JanCyes  ☺15:46
djszapidefine "yes  ?" :)15:47
djszapiotherwise I would say 'yes'.15:47
JanCwhat you apparently see as a "?" was a smiley15:48
djszapipardon ?15:48
JanCyes, I understand what you want now15:48
djszapido you know the answer how to do it ?15:49
djszapiverbose is supposed to do that.15:49
djszapialso initctl log-priority warn15:49
djszapibut none of them works :(15:49
djszapiJanC: feel free to help me, if you can :P15:59
JanCdjszapi: I did some test, and for me it lists pre-start shell PIDs ?16:09
JanCdjszapi: maybe you don't need 'warn' but 'info'?16:10
JanCwarn should only show warnings & errors?16:12
djszapiJanC: verbose should work anyway.16:13
djszapibut I am trying with info16:13
JanC'debug' will show even more, but 'info' should be enough16:14
djszapidoes it work with 'warn' by you ?16:15
djszapino pid with info either.16:16
djszapiJanC: http://pastebin.com/HVGiQHqz16:17
djszapiwhich is supposed to be the PID of the 'sh' line ?16:18
djszapicaptrace lines are internal stuff, you can skip them, not that important tho.16:19
JanChttp://pastebin.com/4CSGKYhm --> you can see the PID (13885) of the shell that executes the post-stop script (which only runs "sleep 10", hence it takes exactly 10 seconds to run)16:28
JanCthat's with log-priority info16:30
JanCdidn't test 'warn', but from the docs 'warn' shouldn't show this  ;)16:31
JanC"`warn' (ordinary messages are suppressed whilst still logging warnings and errors);"16:31
JanCdoes your dbus job have any pre/post-stop scripts?16:32
djszapire17:33
djszapiJanC: I do not really understand why you keep repeating this pre/post-start/stop thingy17:33
djszapiit should return the PID of the parent in *any* case17:33
JanCdjszapi: it seems like it currently doesn't log the PID of the shell indeed18:12
JanCin that case18:12
djszapiyou mean in my pastebin, right ?18:13
JanCnot only in your pastebin, also on my system18:13
djszapithat is a BUG18:14
djszapiScott mentioned it should.18:14
djszapiJanC: what to do then ?18:49

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