fix debian sysvinit script fails to restart docker daemon when stopped
Fixes: #44130 Signed-off-by: Yann Autissier <yann.autissier@gmail.com>
This commit is contained in:
parent
924edb948c
commit
8ad8c6d887
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ case "$1" in
|
||||||
restart)
|
restart)
|
||||||
check_init
|
check_init
|
||||||
fail_unless_root
|
fail_unless_root
|
||||||
docker_pid=$(cat "$DOCKER_SSD_PIDFILE" 2> /dev/null)
|
docker_pid=$(cat "$DOCKER_SSD_PIDFILE" 2> /dev/null || true)
|
||||||
[ -n "$docker_pid" ] \
|
[ -n "$docker_pid" ] \
|
||||||
&& ps -p $docker_pid > /dev/null 2>&1 \
|
&& ps -p $docker_pid > /dev/null 2>&1 \
|
||||||
&& $0 stop
|
&& $0 stop
|
||||||
|
|
Loading…
Reference in a new issue