alpine-overlay/kubezero/cri-o/crio.initd

41 lines
973 B
Plaintext
Raw Normal View History

2022-04-13 17:07:07 +00:00
#!/sbin/openrc-run
# Copyright 2015-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="OCI Kubernetes Container Runtime daemon"
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
extra_started_commands="reload"
command="/usr/bin/${RC_SVCNAME}"
command_args="${command_args}"
command_background="true"
2023-08-18 15:17:00 +00:00
# We run all containers with nice level 1
start_stop_daemon_args="-N 1 \
2022-04-13 17:07:07 +00:00
--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
--stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
depend() {
need net
use dns
2022-04-13 17:07:07 +00:00
}
checkconfig() {
checkpath --directory --owner root:root --mode 0775 \
/var/log/${RC_SVCNAME}
checkpath --file --owner root:root --mode 0644 \
/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
2023-07-04 15:10:30 +00:00
checkpath --directory --owner root:root --mode 0750 \
/var/lib/crio
2022-04-13 17:07:07 +00:00
}
start() {
checkconfig
default_start
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}