/srv/irclogs.ubuntu.com/2013/09/11/#upstart.txt

smokes2345so i have an upstart process that isn't killing all its children when we try to stop, what's the workaround?14:57
jodhsmokes2345: 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 normally15:18
smokes2345perhaps i didn't phrase the issue properly...15:19
jodhsmokes2345: upstart kills the main job process and all the processes in that process group.15:20
smokes2345i 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 affected15:21
smokes2345i'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 starting15:24
jodhsmokes2345: 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
JanCI 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 problem15: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 app15:38
jodhsmokes2345: 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
smokes2345not quite sure about the version, although i'm sure it's not the latest and greatest. how can i get the version?15:39
smokes2345ah, upstart 0.6.415:45
smokes2345thats what initctl reports anyway15:45
smokes2345so session init is out of the question15:45
smokes2345•jodh• initctl reports upstart 0.6.415:51
smokes2345so i've tried a couple of variations of this http://superuser.com/questions/213416/running-upstart-jobs-as-unprivileged-users15:56
smokes2345but no joy15:56
JanCsmokes2345: maybe you should not use startx to start X11 ?16:00
smokes2345•JanC• yeah, i'm trying xinit now16:02
JanCor maybe a simplistic DM16:02
JanCsomething like nodm16:05
smokes2345no need for a dm, looks like xinit will work fine16:08

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