From 1c3cc01b3639d6b1797500463d999a8140bcec94 Mon Sep 17 00:00:00 2001 From: fbt Date: Sat, 22 Feb 2014 18:32:37 +0400 Subject: [PATCH] docker service --- init.d/docker | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 init.d/docker diff --git a/init.d/docker b/init.d/docker new file mode 100755 index 0000000..8097492 --- /dev/null +++ b/init.d/docker @@ -0,0 +1,14 @@ +#!/usr/bin/env watchman + +docker_dir='/home/docker' + +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 +}