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 running | 10:11 |
taharqa | Hi delkin__ , here what I have for docker where docker daemon have to be running before container can start | 14:03 |
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:04 |
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:05 | |
taharqa | the file creation can be replace by anything | 14: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 | ||
cdwSymfony | Okay, I need an easy way to add an upstart script. | 17:13 |
cdwSymfony | I just want to add a script. | 17:14 |
=== SpamapS_ is now known as SpamapS | ||
joelteon | how 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!