Skip to content

Commit

Permalink
Revise scripts for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ailispaw committed Oct 30, 2015
1 parent 4f2c63f commit 44c01ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions overlay/etc/init.d/docker
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ start() {
logger -s -p user.info -t "docker[$$]" "Starting Docker daemon $DOCKER_PARAMS"
echo "Starting Docker daemon $DOCKER_PARAMS" >> "$DOCKER_LOGFILE"
if [ "$$" == "1" ]; then
eval "exec /bin/docker daemon $DOCKER_PARAMS" >> "$DOCKER_LOGFILE" 2>&1
eval "exec /bin/docker daemon $DOCKER_PARAMS >> \"$DOCKER_LOGFILE\" 2>&1"
else
eval "/bin/docker daemon $DOCKER_PARAMS" >> "$DOCKER_LOGFILE" 2>&1 &
eval "/bin/docker daemon $DOCKER_PARAMS >> \"$DOCKER_LOGFILE\" 2>&1 &"
fi
}

Expand Down
2 changes: 1 addition & 1 deletion overlay/init
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ logger -s -p user.info -t "init[$$]" "Configuring sysctl"
sysctl -p /etc/sysctl.conf

logger -s -p user.info -t "init[$$]" "Starting Docker daemon"
/etc/init.d/docker start &
/etc/init.d/docker start

set -mb
trap '' SIGCHLD
Expand Down
3 changes: 3 additions & 0 deletions overlay/sbin/shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ if [ -n "${CONTAINERS}" ]; then
docker stop -t 2 ${CONTAINERS}
fi

logger -s -p user.info -t "$(basename $0)[$$]" "Stopping Docker daemon"
/etc/init.d/docker stop

logger -s -p user.info -t "$(basename $0)[$$]" "Executing shutdown scripts in /etc/init.d"
/etc/init.d/rcK

Expand Down

0 comments on commit 44c01ae

Please sign in to comment.