# nfs This shell script takes care of starting and stopping
# the NFS services.
#
-# chkconfig: 345 12 84
+# chkconfig: 345 13 81
# description: NFS is a popular protocol for file sharing across TCP/IP \
# networks. This service provides NFS server functionality, \
# which is configured via the /etc/exports file.
exit 0
fi
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
- [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
+if [ "$1" != "stop" ]; then
+ check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
fi
start() {
restart)
stop
start
- /sbin/service idmapd status >/dev/null && /sbin/service idmapd restart
+ /sbin/service idmapd status >/dev/null && /sbin/service idmapd reload
/sbin/service svcgssd status >/dev/null && /sbin/service svcgssd restart
;;
reload|force-reload)
[ $? -ne 0 ] && RETVAL=7
if [ $RETVAL -eq 0 ]; then
ok
- /sbin/service idmapd status >/dev/null && /sbin/service idmapd restart
+ /sbin/service idmapd status >/dev/null && /sbin/service idmapd reload
/sbin/service svcgssd status >/dev/null && /sbin/service svcgssd restart
else
died