summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2019-03-25 08:36:25 +0000
committerSven Wegener <swegener@gentoo.org>2019-03-25 08:43:44 +0000
commitb7ef9be685391ff5c82c990263036fc3776165a4 (patch)
treed07950b58bbb3629e1f8bf402f9031666cc63a6b /app-emulation
parentmedia-libs/jasper: Removed "test" USE flag (diff)
downloadgentoo-b7ef9be685391ff5c82c990263036fc3776165a4.tar.gz
gentoo-b7ef9be685391ff5c82c990263036fc3776165a4.tar.bz2
gentoo-b7ef9be685391ff5c82c990263036fc3776165a4.zip
app-emulation/containerd: Write pidfile and create log directory
Signed-off-by: Sven Wegener <swegener@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/containerd/files/containerd.initd6
1 files changed, 4 insertions, 2 deletions
diff --git a/app-emulation/containerd/files/containerd.initd b/app-emulation/containerd/files/containerd.initd
index 3a02d494ad15..f0f4e735b5a1 100644
--- a/app-emulation/containerd/files/containerd.initd
+++ b/app-emulation/containerd/files/containerd.initd
@@ -1,13 +1,15 @@
#!/sbin/openrc-run
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Containerd container runtime"
command="/usr/bin/containerd"
pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
-start_stop_daemon_args="--background --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+start_stop_daemon_args="--background --make-pidfile --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
start_pre() {
+ checkpath -m 0750 -d /var/log/${RC_SVCNAME}
+
ulimit -n 1048576
# Having non-zero limits causes performance problems due to accounting overhead