Browse Source

Merge pull request #1420 from jpetazzo/fix-get-docker-io-upstart-script

* Packaging: Fix the upstart script generated by get.docker.io
Guillaume J. Charmes 12 years ago
parent
commit
279fe144e1
1 changed files with 7 additions and 1 deletions
  1. 7 1
      contrib/install.sh

+ 7 - 1
contrib/install.sh

@@ -45,7 +45,13 @@ then
   echo "Upstart script already exists."
 else
   echo "Creating /etc/init/dockerd.conf..."
-  echo "exec env LANG=\"en_US.UTF-8\" /usr/local/bin/docker -d" > /etc/init/dockerd.conf
+  cat >/etc/init/dockerd.conf <<EOF
+description "Docker daemon"
+start on filesystem or runlevel [2345]
+stop on runlevel [!2345]
+respawn
+exec env LANG="en_US.UTF-8" /usr/local/bin/docker -d
+EOF
 fi
 
 echo "Starting dockerd..."