exit 0
fi
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
- [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
-fi
-
# Sanity checks
[ -x /usr/sbin/rpc.nfsd ] || exit 0
[ -x /usr/sbin/rpc.mountd ] || exit 0
start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/nfs ]; then
+ if [ -x /sbin/pidof ]; then
+ if [ -z "`/sbin/pidof portmap`" ]; then
+ nls "Error: portmap isn't running"
+ exit 0
+ fi
+ fi
+
# Start daemons.
modprobe -s nfsd > /dev/null 2>&1
if [ "$(kernelverser)" -ge "002006" ]; then