|
@@ -22,7 +22,7 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
|
|
BASE=docker
|
|
|
|
|
|
# modify these in /etc/default/$BASE (/etc/default/docker)
|
|
|
-DOCKER=/usr/bin/$BASE
|
|
|
+DOCKERD=/usr/bin/dockerd
|
|
|
# This is the pid file managed by docker itself
|
|
|
DOCKER_PIDFILE=/var/run/$BASE.pid
|
|
|
# This is the pid file created/managed by start-stop-daemon
|
|
@@ -39,8 +39,8 @@ if [ -f /etc/default/$BASE ]; then
|
|
|
fi
|
|
|
|
|
|
# Check docker is present
|
|
|
-if [ ! -x $DOCKER ]; then
|
|
|
- log_failure_msg "$DOCKER not present or not executable"
|
|
|
+if [ ! -x $DOCKERD ]; then
|
|
|
+ log_failure_msg "$DOCKERD not present or not executable"
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
@@ -103,11 +103,11 @@ case "$1" in
|
|
|
log_begin_msg "Starting $DOCKER_DESC: $BASE"
|
|
|
start-stop-daemon --start --background \
|
|
|
--no-close \
|
|
|
- --exec "$DOCKER" \
|
|
|
+ --exec "$DOCKERD" \
|
|
|
--pidfile "$DOCKER_SSD_PIDFILE" \
|
|
|
--make-pidfile \
|
|
|
-- \
|
|
|
- daemon -p "$DOCKER_PIDFILE" \
|
|
|
+ -p "$DOCKER_PIDFILE" \
|
|
|
$DOCKER_OPTS \
|
|
|
>> "$DOCKER_LOGFILE" 2>&1
|
|
|
log_end_msg $?
|