Skip to content

Instantly share code, notes, and snippets.

@lukedemi
Created May 30, 2014 19:45
Show Gist options
  • Save lukedemi/857095c02ab36811d8fa to your computer and use it in GitHub Desktop.
Save lukedemi/857095c02ab36811d8fa to your computer and use it in GitHub Desktop.
Fig upstart file
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