[10:10] <delkin__> Hello everyone. Is it possible to make sure that service `B` only runs when service `A` finishes? How do I do that?
[10:11] <delkin__> service B should not run while A is still running
[14:03] <taharqa> Hi delkin__ , here what I have for docker where docker daemon have to be running before container can start
[14:04] <taharqa> docker daemon write into /var/run/docker.sock
[14:04] <taharqa> then we check that the file exists before starting the container
[14:04] <taharqa> here is the script block
[14:05] <taharqa> script
[14:05] <taharqa>   # Wait for docker to finish starting up first.
[14:05] <taharqa>   FILE=/var/run/docker.sock
[14:05] <taharqa>   while [ ! -e $FILE ] ; do
[14:05] <taharqa>     inotifywait -t 2 -e create $(dirname $FILE)
[14:05] <taharqa>   done
[14:05] <taharqa>   # irc is the name of the container to start
[14:05] <taharqa>   /usr/bin/docker start -a irc2
[14:05] <taharqa> end script
[14:05] <taharqa>  
[14:06] <taharqa> the file creation can be replace by anything
[17:13] <cdwSymfony> Okay, I need an easy way to add an upstart script.
[17:14] <cdwSymfony> I just want to add a script.
[23:33] <joelteon> how can I get the output of a failed script from upstart?