You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-containers/cni-plugins/files/cni-dhcp.initd

21 lines
376 B

#!/sbin/openrc-run
name="CNI-DHCP"
description="virtual dhcp server for containers"
command="/opt/cni/bin/dhcp"
command_args="daemon"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
}
stop_post() {
if [ -e /run/cni/dhcp.sock ]; then
ebegin "Cleaning socket for ${name}"
rm -f /run/cni/dhcp.sock
eend $? "Failed to cleanup socket"
fi
}