=== ion_ is now known as ion | ||
IProteus | does upstart store the pid for the process it starts somewhere? | 11:06 |
---|---|---|
IProteus | my process does not create a pid file - but I do need the value and wonder if there is an easy way to get it from upstart instead of managing it in the process. | 11:07 |
dcorbin_wrk | will standard init.d scripts fire updstart events? | 11:09 |
plautrba | IProteus: initctl status <job> or initctl list show also pid if exists | 11:44 |
IProteus | thanks | 11:57 |
IProteus | I have a special program to stop the process, which I call in pre-stop and I need to pass the pid to this. so that means I should parse the output of those commands to get the pid and pass that in - or is there a way in upstart - some sort of pid variable that I could use in the conf file? | 11:57 |
ion | PID=; eval "$(LC_ALL=C status | sed -nre 's/^.*, process ([0-9]+)$/PID=\1;/p')"; [ -n "$PID" ] | 12:00 |
ion | The LC_ALL=C probably isn’t necessary. | 12:01 |
IProteus | sweet, thank you very much. | 12:04 |
SpamapS | dcorbin_wrk: no they won't without explicitly calling 'initctl emit' in their code | 15:21 |
=== TheHarald is now known as apachelogger | ||
Keybuk | sometimes I think things would be easier if I just built udev into Upstart :-) | 18:10 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!