From 01c5cfcc5629e1d90a50a8447f9712fa6ff49f48 Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Wed, 23 Sep 2015 11:23:01 +0000 Subject: [PATCH] Do not try to guess "docker" in Debian SysV init script On boot, the init script is invoked from `/etc/rcN.d/S20docker` (where N is the runlevel). Consequently, the init script tried to find the defaults at `/etc/defaults/S20docker` and the binary at `/usr/bin/S20docker`. This causes the docker daemon to fail at boot with the error /usr/bin/S20docker not present or not executable Starting it manually works because it invokes `/etc/init.d/docker` which has the correct basename. Fix this by hardcoding "docker" as the base name. Signed-off-by: Matthias Rampke --- contrib/init/sysvinit-debian/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/init/sysvinit-debian/docker b/contrib/init/sysvinit-debian/docker index 11500a0a5d..7e3d96caa4 100755 --- a/contrib/init/sysvinit-debian/docker +++ b/contrib/init/sysvinit-debian/docker @@ -19,7 +19,7 @@ set -e export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin -BASE=$(basename $0) +BASE=docker # modify these in /etc/default/$BASE (/etc/default/docker) DOCKER=/usr/bin/$BASE