# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
- msg_network_down NFSD
+ msg_network_down "NFS daemon"
exit 1
fi
else
exit 0
fi
-# Sanity checks
-[ -x /usr/sbin/rpc.nfsd ] || exit 0
-[ -x /usr/sbin/rpc.mountd ] || exit 0
-[ -f /etc/exports ] || exit 0
-
start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/nfs ]; then
daemon rpc.nfsd $RPCNFSDCOUNT
touch /var/lock/subsys/nfs
else
- msg_already_running "NFS"
+ msg_already_running "NFS daemon"
fi
}
stop)
stop
;;
- status)
- status rpc.mountd
- RETVAL=$?
- status nfsd
- RET=$?
- [ $RETVAL -eq 0 ] && RETVAL=$RET
- ;;
restart)
stop
start
exit 0
fi
;;
+ status)
+ status rpc.mountd
+ RETVAL=$?
+ status nfsd
+ RET=$?
+ [ $RETVAL -eq 0 ] && RETVAL=$RET
+ ;;
*)
msg_usage "$0 {start|stop|restart|reload|force-reload|probe|status}"
exit 3