init scripts from rhubarb-pi.sf.net

This commit is contained in:
rhubarb-geek-nz
2024-01-11 02:30:07 +00:00
parent f078df392a
commit ca84b10135
4 changed files with 57 additions and 7 deletions

11
cde/contrib/rc/openbsd/cmsd Executable file
View File

@@ -0,0 +1,11 @@
daemon="/usr/dt/bin/rpc.cmsd &"
. /etc/rc.d/rc.subr
pexp="rpc.cmsd: ${daemon}${daemon_flags:+ ${daemon_flags}} \[listener\].*"
rc_reload() {
${daemon} ${daemon_flags} -t && pkill -HUP -xf "${pexp}"
}
rc_cmd $1