Add /etc/default/docker support to upstart, too (mirroring sysvinit)
This commit is contained in:
parent
1d9139bb89
commit
7cf7dda87d
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue