aports/main/nfs-utils/rpc.statd.initd
Naomi Rennie-Waldock 088488f73c main/nfs-utils: update rpc.statd.initd to create required directories (fixes #17456)
empty directories are part of the package but we should recreate them
if they're missing
2025-09-02 10:21:43 +00:00

28 lines
483 B
Bash

#!/sbin/openrc-run
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
name="NFS statd"
command="/sbin/rpc.statd"
command_args="$OPTS_RPC_STATD"
pidfile="/run/rpc.statd.pid"
depend() {
use ypbind net
need portmap
after quota
}
start_pre() {
checkpath -d -m 0700 -o nobody:root /var/lib/nfs/sm
checkpath -d -m 0700 -o nobody:root /var/lib/nfs/sm.bak
}
start() {
# Don't start rpc.statd if already started by someone else...
killall -q -0 "$command" && return 0
default_start
}