mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-14 00:56:25 +02:00
28 lines
483 B
Bash
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
|
|
}
|