app-containers/containerd: new package, add 2.0.0
Signed-off-by: Federico Justus Denkena <federico.denkena@posteo.de>
This commit is contained in:
4
app-containers/containerd/files/containerd.confd
Normal file
4
app-containers/containerd/files/containerd.confd
Normal file
@@ -0,0 +1,4 @@
|
||||
# This is the delay to be used in the start_post function to wait for
|
||||
# the socket to be active.
|
||||
#containerd_socket_delay=5
|
||||
|
||||
27
app-containers/containerd/files/containerd.initd
Normal file
27
app-containers/containerd/files/containerd.initd
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Containerd container runtime"
|
||||
command="/usr/bin/containerd"
|
||||
command_args="${command_args:-}"
|
||||
command_background="true"
|
||||
pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
|
||||
start_stop_daemon_args="--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
|
||||
# in the kernel. We recommend using cgroups to do container-local accounting.
|
||||
ulimit -u unlimited
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
start_post() {
|
||||
ewaitfile ${containerd_socket_delay:-5} /run/containerd/containerd.sock
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user