1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

try to restart NFS LOCKD if it failed to start

(This used to be ctdb commit 2913cc93a9a172caf9e0d6675cfa4de4cc957b13)
This commit is contained in:
Ronnie Sahlberg 2010-10-14 08:12:41 +11:00
parent c1612205f1
commit b4e3a95039
2 changed files with 14 additions and 1 deletions

View File

@ -79,7 +79,12 @@ case "$1" in
} || exit $?
# check that lockd responds to rpc requests
ctdb_check_rpc "lockd" 100021 1
(ctdb_check_rpc "lockd" 100021 1)
[ $? = "0" ] || {
echo "Trying to restart lock manager service"
startstop_nfslock restart
exit 1
}
# mount needs special handling since it is sometimes not started
# correctly on RHEL5

View File

@ -417,6 +417,10 @@ startstop_nfslock() {
stop)
service nfsserver stop > /dev/null 2>&1
;;
restart)
service nfsserver stop
service nfsserver start
;;
esac
;;
rhel)
@ -427,6 +431,10 @@ startstop_nfslock() {
stop)
service nfslock stop > /dev/null 2>&1
;;
restart)
service nfslock stop
service nfslock start
;;
esac
;;
*)