summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianon Gravi <admwiggin@gmail.com>2023-05-17 14:20:14 -0700
committerTianon Gravi <admwiggin@gmail.com>2023-05-17 14:20:14 -0700
commit0d8087fbbc9daf521eca6f9f3ea91607f0022346 (patch)
treee027b480198682bd631d4809c93b49126e990896
parent405f4589a6f6950752fceca5414ba1937af2839c (diff)
downloaddocker-0d8087fbbc9daf521eca6f9f3ea91607f0022346.tar.gz
Remove Upstart scripts
Upstart has been EOL for 8 years and isn't used by any distributions we support any more. Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
-rw-r--r--contrib/init/sysvinit-debian/docker.default2
-rw-r--r--contrib/init/upstart/docker.conf72
2 files changed, 1 insertions, 73 deletions
diff --git a/contrib/init/sysvinit-debian/docker.default b/contrib/init/sysvinit-debian/docker.default
index c4e93199b4..60136c04f5 100644
--- a/contrib/init/sysvinit-debian/docker.default
+++ b/contrib/init/sysvinit-debian/docker.default
@@ -1,4 +1,4 @@
-# Docker Upstart and SysVinit configuration file
+# Docker SysVinit configuration file
#
# THIS FILE DOES NOT APPLY TO SYSTEMD
diff --git a/contrib/init/upstart/docker.conf b/contrib/init/upstart/docker.conf
deleted file mode 100644
index d58f7d6ac8..0000000000
--- a/contrib/init/upstart/docker.conf
+++ /dev/null
@@ -1,72 +0,0 @@
-description "Docker daemon"
-
-start on (filesystem and net-device-up IFACE!=lo)
-stop on runlevel [!2345]
-
-limit nofile 524288 1048576
-
-# Having non-zero limits causes performance problems due to accounting overhead
-# in the kernel. We recommend using cgroups to do container-local accounting.
-limit nproc unlimited unlimited
-
-respawn
-
-kill timeout 20
-
-pre-start script
- # see also https://github.com/tianon/cgroupfs-mount/blob/master/cgroupfs-mount
- if grep -v '^#' /etc/fstab | grep -q cgroup \
- || [ ! -e /proc/cgroups ] \
- || [ ! -d /sys/fs/cgroup ]; then
- exit 0
- fi
- if ! mountpoint -q /sys/fs/cgroup; then
- mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup
- fi
- (
- cd /sys/fs/cgroup
- for sys in $(awk '!/^#/ { if ($4 == 1) print $1 }' /proc/cgroups); do
- mkdir -p $sys
- if ! mountpoint -q $sys; then
- if ! mount -n -t cgroup -o $sys cgroup $sys; then
- rmdir $sys || true
- fi
- fi
- done
- )
-end script
-
-script
- # modify these in /etc/default/$UPSTART_JOB (/etc/default/docker)
- DOCKERD=/usr/bin/dockerd
- DOCKER_OPTS=
- if [ -f /etc/default/$UPSTART_JOB ]; then
- . /etc/default/$UPSTART_JOB
- fi
- exec "$DOCKERD" $DOCKER_OPTS --raw-logs
-end script
-
-# Don't emit "started" event until docker.sock is ready.
-# See https://github.com/docker/docker/issues/6647
-post-start script
- DOCKER_OPTS=
- DOCKER_SOCKET=
- if [ -f /etc/default/$UPSTART_JOB ]; then
- . /etc/default/$UPSTART_JOB
- fi
-
- if ! printf "%s" "$DOCKER_OPTS" | grep -qE -e '-H|--host'; then
- DOCKER_SOCKET=/var/run/docker.sock
- else
- DOCKER_SOCKET=$(printf "%s" "$DOCKER_OPTS" | grep -oP -e '(-H|--host)\W*unix://\K(\S+)' | sed 1q)
- fi
-
- if [ -n "$DOCKER_SOCKET" ]; then
- while ! [ -e "$DOCKER_SOCKET" ]; do
- initctl status $UPSTART_JOB | grep -qE "(stop|respawn)/" && exit 1
- echo "Waiting for $DOCKER_SOCKET"
- sleep 0.1
- done
- echo "$DOCKER_SOCKET is up"
- fi
-end script