mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
try to restart rpc-rquotad if it is not running
bz60317 (This used to be ctdb commit 2263cd74d511247debadd0f6602bc6396b46ac5e)
This commit is contained in:
parent
435fb78d13
commit
5439401dd2
@ -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 &
|
||||
}
|
||||
;;
|
||||
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user