diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-17 02:30:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-17 02:30:06 +0100 |
commit | a6266c63b23ed0ee16865627ca53e4f5353f0a5c (patch) | |
tree | 6ed71ecc485e9c4903818db305f6ebee454a38db /app-containers/cni-plugins/files | |
parent | 1fd4e372381e1318aae1b7d3338c04156e5da974 (diff) |
gentoo auto-resync : 17:07:2022 - 02:30:06
Diffstat (limited to 'app-containers/cni-plugins/files')
-rw-r--r-- | app-containers/cni-plugins/files/cni-dhcp.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-containers/cni-plugins/files/cni-dhcp.initd b/app-containers/cni-plugins/files/cni-dhcp.initd new file mode 100644 index 000000000000..26b838c516bd --- /dev/null +++ b/app-containers/cni-plugins/files/cni-dhcp.initd @@ -0,0 +1,20 @@ +#!/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 +} |