/srv/irclogs.ubuntu.com/2014/03/11/#upstart.txt

delkin__Hello everyone. Is it possible to make sure that service `B` only runs when service `A` finishes? How do I do that?10:10
delkin__service B should not run while A is still running10:11
taharqaHi delkin__ , here what I have for docker where docker daemon have to be running before container can start14:03
taharqadocker daemon write into /var/run/docker.sock14:04
taharqathen we check that the file exists before starting the container14:04
taharqahere is the script block14:04
taharqascript14:05
taharqa  # Wait for docker to finish starting up first.14:05
taharqa  FILE=/var/run/docker.sock14:05
taharqa  while [ ! -e $FILE ] ; do14:05
taharqa    inotifywait -t 2 -e create $(dirname $FILE)14:05
taharqa  done14:05
taharqa  # irc is the name of the container to start14:05
taharqa  /usr/bin/docker start -a irc214:05
taharqaend script14:05
taharqa 14:05
taharqathe file creation can be replace by anything14:06
=== jodh changed the topic of #upstart to: Upstart 1.12.1 | http://upstart.ubuntu.com/cookbook/ | Post to mailing list if no response here: http://bit.ly/ooeNVv
cdwSymfonyOkay, I need an easy way to add an upstart script.17:13
cdwSymfonyI just want to add a script.17:14
=== SpamapS_ is now known as SpamapS
joelteonhow can I get the output of a failed script from upstart?23:33

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