summaryrefslogtreecommitdiffstats
path: root/ctdb/config/events.d/60.nfs
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/config/events.d/60.nfs')
-rwxr-xr-xctdb/config/events.d/60.nfs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs
index 1eca005746..2115d46e64 100755
--- a/ctdb/config/events.d/60.nfs
+++ b/ctdb/config/events.d/60.nfs
@@ -103,6 +103,16 @@ case "$1" in
rpc.mountd $RPCMOUNTDOPTS &
exit 1
}
+ # rquotad needs special handling since it is sometimes not started
+ # correctly on RHEL5
+ # this is not a critical service so we dont flag the node as unhealthy
+ rpcinfo -u localhost 100011 1 > /dev/null || {
+ echo "ERROR: RQUOTAD is not running. Trying to restart it."
+ RPCRQUOTADOPTS=""
+ [ -n "$RQUOTAD_PORT" ] && RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
+ killall -q -9 rpc.rquotad
+ rpc.rquotad $RPCRQUOTADOPTS &
+ }
;;
*)