зеркало из https://github.com/microsoft/docker.git
Add /etc/default/docker support to upstart, too (mirroring sysvinit)
This commit is contained in:
Родитель
1d9139bb89
Коммит
7cf7dda87d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче