# Start daemons.
printf "Starting NFS statd: "
rpc.statd
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
touch /var/lock/subsys/nfslock
- echo "done"
printf "Starting NFS services: "
/usr/sbin/exportfs -r
- echo "done"
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
printf "Starting NFS daemon: "
rpc.nfsd ${NR_THREADS}
- echo "done"
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
printf "Starting NFS mountd: "
rpc.mountd
- echo "done"
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
touch /var/lock/subsys/nfs
}
# Stop daemons.
printf "Shutting down NFS mountd: "
killall -q rpc.mountd
- echo "done"
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
printf "Shutting down NFS daemon: "
kill -9 `pidof nfsd` 2>/dev/null
- echo "done"
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
printf "Shutting down NFS services: "
/usr/sbin/exportfs -au
rm -f /var/lock/subsys/nfs
killall -q rpc.statd
- echo "done"
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
printf "Stopping NFS statd: "
killall -q rpc.statd
- echo "done"
+ [ $? = 0 ] && echo "OK" || echo "FAIL"
rm -f /var/lock/subsys/nfslock
}