log_script_name "$0 $*"
+# Load global network parameters
+source /etc/sysconfig/network/network-parameters
+
+# Check if NFS server must be enabled
+if [ "x${NFS_SERVER_ENA}" != "xyes" -a "x${NFS_SERVER_ENA}" != "xYes" -a "x${NFS_SERVER_ENA}" != "xYES" ]; then
+ exit ${EXIT_CODE_SUCCESS}
+fi
+
# See how we were called
case "$1" in
start)
stop)
cmd_run_log_box_warn "portmap stop" killproc portmap
;;
-
+
reload)
reloadproc portmap
;;
-
+
restart)
$0 stop
sleep 1
status)
statusproc portmap
;;
-
+
*)
echo "Usage: $0 {reload|restart|start|status|stop}"
exit ${EXIT_CODE_FAILURE}