mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Both nfs and nfslock scripts can fail under redhat in very rare situations.
Ctdb can also be configured to ignore checking for knfsd and if it is alive. In that situation, no attempt will be made to restart nfs, and sicne nfs is not running, lockd can not be restarted either. To workaround this, everytime we try to restart the lockmanager, also try to restart nfsd (This used to be ctdb commit 953dbfbddad656a64e30a6aca115cb1479d11573)
This commit is contained in:
parent
db8cb31d8b
commit
a1cfa23d60
@ -82,6 +82,7 @@ case "$1" in
|
||||
(ctdb_check_rpc "lockd" 100021 1)
|
||||
[ $? = "0" ] || {
|
||||
echo "Trying to restart lock manager service"
|
||||
startstop_nfs restart
|
||||
startstop_nfslock restart
|
||||
exit 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user