+ status)
+ if ! pidof rpc.statd >/dev/null
+ then
+ echo "rpc.statd not running"
+ exit 3
+ fi
+
+ if [ "$NEED_GSSD" = yes ]
+ then
+ if [ ! -f "$GSSD_PIDFILE" ] || [ "$( pidof rpc.gssd )" != "$( cat $GSSD_PIDFILE )"]
+ then
+ echo "rpc.statd running, but rpc.gssd halted"
+ exit 3
+ fi
+ fi
+
+ if [ "$NEED_LOCKD" = yes ]
+ then
+ if ! pidof rpc.lockd >/dev/null
+ then
+ echo "rpc.statd running, but rpc.lockd halted"
+ exit 3
+ fi
+ fi
+
+ if [ "$NEED_IDMAPD" = yes ]
+ then
+ if [ ! -f "$IDMAPD_PIDFILE" ] || [ "$( pidof rpc.idmapd )" != "$( cat $IDMAPD_PIDFILE )"]
+ then
+ echo "rpc.statd running, but rpc.idmapd halted"
+ exit 3
+ fi
+ fi
+
+ echo "rpc.statd running"
+ exit 0
+ ;;
+