Splux Linux

source-based Linux using SPS

sps-extra · log · files · refs · tags · releases · people · languages · GitHub · file

fs/nfs-utils/files/openrc-nfs-server


OpenRC runscript

417 bytes at e2d5247 · GitHub

#!/sbin/openrc-run
description="NFS server"
command="/usr/sbin/rpc.mountd"
command_args="-F"
command_background="yes"
pidfile="/run/nfs-server.pid"

depend() {
    use net
    after net
}

start_pre() {
	if command -v exportfs >/dev/null 2>&1; then exportfs -ra || :; fi
	if command -v rpc.statd >/dev/null 2>&1; then rpc.statd --no-notify || :; fi
	if command -v rpc.nfsd >/dev/null 2>&1; then rpc.nfsd 8 || :; fi
}