summaryrefslogtreecommitdiff
path: root/contrib/init/sysvinit-debian/docker
Commit message (Collapse)AuthorAgeFilesLines
* fix debian sysvinit script fails to restart docker daemon when stoppedYann Autissier2022-09-111-1/+1
| | | | | Fixes: #44130 Signed-off-by: Yann Autissier <yann.autissier@gmail.com>
* run shfmtAkihiro Suda2020-03-031-6/+6
| | | | | | git grep --name-only '^#!' | egrep -v '(vendor|\.go|Jenkinsfile)' | xargs shfmt -w -bn -ci -sr Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
* Stop returns 0 when docker service was not runningCyprian Gracz2016-11-281-3/+7
| | | | | | | | | | | In case when docker was not running init script stop was returning value <> 0. Due to this fact it was impossible to uninstall the docker-engine if the docker service was stopped. Signed-off-by: Cyprian Gracz <cyprian.gracz@micro-jumbo.eu> Fixed message logging Signed-off-by: Cyprian Gracz <cyprian.gracz@micro-jumbo.eu>
* missed DOCKER->DOCKERD change in 1ac1b78b3a771c562d9cfa91c14f8a494c3723c1 ↵Liam Macgillavry2016-08-191-1/+1
| | | | | | for 'status' Signed-off-by: Liam Macgillavry <liam@kumina.nl>
* Don't set ulimits (nproc)Sebastiaan van Stijn2016-07-131-2/+5
| | | | | | | | | | | | | | | | | | There is a not-insignificant performance overhead for all containers (if containerd is a child of Docker, which is the current setup) if rlimits are set on the main Docker daemon process (because the limits propogate to all children). We recommend using cgroups to do container-local accounting. This applies the change added in 8db61095a3d0bcb0733580734ba5d54bc27a614d to other init scripts. Note that nfile cannot be set to unlimited, and the limit is hardcoded to 1048576 (2^20) , see: http://stackoverflow.com/a/1213069/1811501 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* use tabs for indentationSebastiaan van Stijn2016-07-121-5/+5
| | | | Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* contrib: init: use dockerdAntonio Murdaca2016-05-111-5/+5
| | | | Signed-off-by: Antonio Murdaca <runcom@redhat.com>
* #16560 Add timeout to `sudo service docker stop` on sysvinitEwa Czechowska2015-09-241-1/+1
| | | | | | | | Add 10 seconds timeout when running `sudo service docker stop`. This is especially needed when running `sudo service docker restart`. Otherwise, `restart` results in exitstatus 1, because `start` has nothing to do. Signed-off-by: Ewa Czechowska <ewa@ai-traders.com>
* Do not try to guess "docker" in Debian SysV init scriptMatthias Rampke2015-09-231-1/+1
| | | | | | | | | | | | | | | | | 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 <mr@soundcloud.com>
* Update init scripts to use `docker daemon`.David Calavera2015-07-221-1/+1
| | | | Signed-off-by: David Calavera <david.calavera@gmail.com>
* Revert "contrib/init: unshare mount namespace for inits"David Calavera2015-06-151-4/+3
| | | | | | This reverts commit b6569b6b82df4c5e29ee8f5ebd9db7e36919cefd. Signed-off-by: David Calavera <david.calavera@gmail.com>
* Fixes #13031 - Check for upstart or init is not detecting properlySteven Richards2015-05-281-7/+15
| | | | | | | This will now properly check whether /etc/init.d/docker or service docker is invoking the script and respond to the user accordingly. Signed-off-by: Steven Richards <steven@axiomzen.co>
* contrib/init: unshare mount namespace for initsVincent Batts2015-04-231-3/+4
| | | | | | | | * openrc * sysvinit-debian * upstart Signed-off-by: Vincent Batts <vbatts@redhat.com>
* Fix several minor issues with Debian sysvinit scriptTianon Gravi2014-08-071-3/+2
| | | | | | | | - add `set -e` to make failing commands bail the script - remove trailing `exit 0` which is just extraneous anyhow - adjust `status_of_proc` options to pass in `$DOCKER_DESC` so we get consistently styled messages like `Docker is running` or `Docker is not running` or `could not access PID file for Docker` Signed-off-by: Andrew Page <admwiggin@gmail.com>
* Add a conditional to contrib/init/sysvinit-debian/docker for Dash vs Bash ↵Tianon Gravi2014-07-141-1/+5
| | | | | | support Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* Add NOFILE and NPROC ulimit settings to the SysV init scriptTianon Gravi2014-07-021-0/+3
| | | | Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* Make debian init work when called quickly.Joe Beda2014-06-031-4/+8
| | | | | | | | We use the start-stop-daemon pid creation mechanism in addition the intrinsic built into docker. This means the pid file is guaranteed to be written out by the time the script exits. See #6184. Docker-DCO-1.1-Signed-off-by: Joe Beda <joe.github@bedafamily.com> (github: jbeda)
* Add "Should-Start" cgroupfs-mount and cgroup-lite to sysvinit-debian init scriptTianon Gravi2014-05-071-0/+2
| | | | | | It's fine to list both here because "Should-Start" is a loose binding (ie, if the listed service exists, it'll be started first, but otherwise, this one will start without it). Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* Add variable for DOCKER_LOGFILE to sysvinit and use append instead of ↵Tianon Gravi2014-03-111-3/+4
| | | | | | overwrite in opening the logfile Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* Fix init script cgroup mounting workarounds to be more similar to ↵Tianon Gravi2014-03-111-10/+24
| | | | | | cgroupfs-mount and thus work properly Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
* Fix a few packaging bugs, including and especially a temporary patch to our ↵Tianon Gravi2014-03-101-0/+114
upstart script to mount cgroups properly Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)