Created
May 30, 2014 19:45
-
-
Save lukedemi/857095c02ab36811d8fa to your computer and use it in GitHub Desktop.
Fig upstart file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
chdir /location/of/fig | |
script | |
FILE=/var/run/docker.sock | |
while [ ! -e $FILE ] ; do | |
inotifywait -t 2 -e create $(dirname $FILE) | |
done | |
/usr/local/bin/fig start | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment