Add /etc/default/docker support to upstart, too (mirroring sysvinit)

This commit is contained in:
Tianon Gravi 2013-11-11 11:13:16 -07:00
parent 1d9139bb89
commit 7cf7dda87d
1 changed files with 6 additions and 1 deletions

View File

@ -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