2014-02-22 14:32:37 +00:00
|
|
|
#!/usr/bin/env watchman
|
|
|
|
|
|
|
|
docker_dir='/home/docker'
|
|
|
|
|
2014-07-28 01:00:57 +00:00
|
|
|
service_respawn='true'
|
2014-02-22 14:32:37 +00:00
|
|
|
service_command='/usr/local/sbin/docker'
|
|
|
|
service_args="-g ${docker_dir} -d"
|
|
|
|
|
|
|
|
update() {
|
|
|
|
watchman.stop && {
|
|
|
|
wget "https://get.docker.io/builds/Linux/x86_64/docker-latest" -O "$service_command"
|
|
|
|
}
|
|
|
|
|
|
|
|
watchman.start
|
|
|
|
}
|