docker.upstart: use the same start/stop events as sshd

Is probably more solid
This commit is contained in:
Jonas Pfenniger 2013-07-15 11:41:19 +01:00
parent 24dd50490a
commit 0900d3b7a6
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,8 @@
description "Run docker"
start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
exec /usr/bin/docker -d