smokes2345 | so i have an upstart process that isn't killing all its children when we try to stop, what's the workaround? | 14:57 |
---|---|---|
jodh | smokes2345: sounds like a bug with the application upstart is running? | 15:17 |
smokes2345 | •jodh• don't think so. if upstart is sending the kill signal to all the child processes, they would quit normally | 15:18 |
smokes2345 | perhaps i didn't phrase the issue properly... | 15:19 |
jodh | smokes2345: upstart kills the main job process and all the processes in that process group. | 15:20 |
smokes2345 | i have an x11 program i want to run as a service, its started with startx. when we try to stop the service, upstart kills startx, but none of its children are affected | 15:21 |
smokes2345 | i've tried using 'expect fork' and 'expect daemon', but upstart seems to end up monitoring a process that doesn't exist or dies soon after starting | 15:24 |
jodh | smokes2345: so, the processes you are talking about must be in a different process group. Sounds like you have a rather custom setup: conventionally, you'd run the apps you care about as jobs in their own right. | 15:32 |
JanC | I think smokes2345 probably doesn't need expect fork/daemon ? | 15:34 |
smokes2345 | •JanC• well, i didn't think so, but if i could get it to monitor more than 2 forks i could use 'expect' to solve my problem | 15:37 |
smokes2345 | •jodh• we are running an in-house x11 app, but it is started using very conventional methods. the upstart script starts x as a normal user using startx, startx then calls the users .xinitrc script which starts our app | 15:38 |
jodh | smokes2345: what version of upstart are you using? Your life would be significantly easier if you were using a Session Init (http://upstart.ubuntu.com/cookbook/#session-init). | 15:39 |
smokes2345 | not quite sure about the version, although i'm sure it's not the latest and greatest. how can i get the version? | 15:39 |
smokes2345 | ah, upstart 0.6.4 | 15:45 |
smokes2345 | thats what initctl reports anyway | 15:45 |
smokes2345 | so session init is out of the question | 15:45 |
smokes2345 | •jodh• initctl reports upstart 0.6.4 | 15:51 |
smokes2345 | so i've tried a couple of variations of this http://superuser.com/questions/213416/running-upstart-jobs-as-unprivileged-users | 15:56 |
smokes2345 | but no joy | 15:56 |
JanC | smokes2345: maybe you should not use startx to start X11 ? | 16:00 |
smokes2345 | •JanC• yeah, i'm trying xinit now | 16:02 |
JanC | or maybe a simplistic DM | 16:02 |
JanC | something like nodm | 16:05 |
smokes2345 | no need for a dm, looks like xinit will work fine | 16:08 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!