void-packages/templates/nfs-utils/files/nfsd.rc
Juan RP 37ac64d01b nfs-utils: update to 1.1.6. Switch to OpenRC.
--HG--
extra : convert_revision : 6d18e9b669179e8561b46197274940fe63224213
2009-05-11 04:06:34 +02:00

30 lines
458 B
Text

#!/sbin/runscript
# By default start up 8 server threads.
: ${nfsd_args:=8}
command=/usr/sbin/rpc.nfsd
command_args=$nfsd_args
pidfile=/var/run/nfsd.pid
name="RPC Network File System daemon"
depend()
{
use procfs
need mountd
}
start_post()
{
echo $(pidof -o %PPID nfsd) > $pidfile
sm-notify ${smnotify_args}
}
stop()
{
# Unexport all directories before.
exportfs -au
ebegin "Stopping $name"
kill -9 $(cat $pidfile) && rm -f $pidfile
eend $?
}