/srv/irclogs.ubuntu.com/2010/07/07/#upstart.txt

frederickjhI am working on writing an upstart job for a program that has three daemons that must be started in a specific order, stopping is not so important but the prefer order is the same in reverse. Can this be done with one upstart job or is it needed to write one for each daemon?13:43
frederickjhI am working on writing an upstart job for a program that has three daemons that must be started in a specific order, stopping is not so important but the prefer order is the same in reverse. Can this be done with one upstart job or is it needed to write one for each daemon?15:15
mbieblfrederickjh: if you want those three daemons monitored by upstart, you need to split them15:16
frederickjhok15:16
frederickjhThats what I thougt.15:16
frederickjhI had tried with two as a test in a job but only the second one was running at the end.15:17
mbiebltwo exec lines?15:17
frederickjhyes15:17
mbieblyeah, the parser only takes the last parsed line15:17
frederickjhok15:17
frederickjhI have another question regarding the program with three daemons.  I think it is possible to have another job with the name of the collective program that could emit a job and start the others.20:42
frederickjhBut is it possible to check the status of the "dummy" job and have it return the status of the 3 daemons?20:43
frederickjhInstead of having to check the status of three daemons individually.20:45
mbieblno23:42
SeqIs it possible to have an upstart script start and stop based on an old sysv script?23:43
mbieblSeq: no, not really23:50
mbieblafaik, fedora has patched the rc script to emit events when an sysv script is started and stopped23:51
mbiebl/etc/rc.d/rc, to be specified23:53
Seqmbiebl: Thanks. I don't control the other init script, so modifying it would be troublesome.23:53
mbieblthat does not help you though, if you e.g. stop a sysv script via /etc/init.d/<service> stop23:53
Seqmbiebl: true, I hadn't thought of that.23:54

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