Add /etc/default/docker support to upstart, too (mirroring sysvinit)
Upstream-commit: 7cf7dda87d59981f8a1727725f6d914dcc4c1815 Component: engine
This commit is contained in:
@@ -6,5 +6,10 @@ stop on runlevel [!2345]
|
||||
respawn
|
||||
|
||||
script
|
||||
/usr/bin/docker -d
|
||||
DOCKER=/usr/bin/$UPSTART_JOB
|
||||
DOCKER_OPTS=
|
||||
if [ -f /etc/default/$UPSTART_JOB ]; then
|
||||
. /etc/default/$UPSTART_JOB
|
||||
fi
|
||||
"$DOCKER" -d $DOCKER_OPTS
|
||||
end script
|
||||
|
||||
Reference in New Issue
Block a user