diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-11-09 11:42:48 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-11-09 11:42:48 +0100 |
commit | b7bd9e0c49bca1682b7707425298c102ce813d71 (patch) | |
tree | e7cc863e4973c593c2573a5d8b99acf0284cc4cf /app-emulation/containerd/files | |
parent | app-emulation/docker: Deprecate devicemapper (diff) | |
download | gentoo-b7bd9e0c49bca1682b7707425298c102ce813d71.tar.gz gentoo-b7bd9e0c49bca1682b7707425298c102ce813d71.tar.bz2 gentoo-b7bd9e0c49bca1682b7707425298c102ce813d71.zip |
app-emulation/containerd: Add initscript, drop docker-runc dep
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'app-emulation/containerd/files')
-rw-r--r-- | app-emulation/containerd/files/containerd.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app-emulation/containerd/files/containerd.initd b/app-emulation/containerd/files/containerd.initd new file mode 100644 index 000000000000..3a02d494ad15 --- /dev/null +++ b/app-emulation/containerd/files/containerd.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 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_pre() { + ulimit -n 1048576 + + # Having non-zero limits causes performance problems due to accounting overhead + # in the kernel. We recommend using cgroups to do container-local accounting. + ulimit -u unlimited + + return 0 +} |