mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
check the shares if they are available before we decide to try to restart nfs
CQ S1027529 (This used to be ctdb commit b6c6a4588ccf6ef78fabfd76d228f56b4eb65165)
This commit is contained in:
parent
65d5c51278
commit
f9156adef5
@ -47,6 +47,13 @@ case "$1" in
|
||||
;;
|
||||
|
||||
monitor)
|
||||
# and that its directories are available
|
||||
[ "$CTDB_NFS_SKIP_SHARE_CHECK" = "yes" ] || {
|
||||
exportfs | grep -v '^#' | grep '^/' |
|
||||
sed -e 's/[[:space:]]\+[^[:space:]]*$//' |
|
||||
ctdb_check_directories
|
||||
} || exit $?
|
||||
|
||||
if ctdb_service_needs_reconfigure ; then
|
||||
ctdb_service_reconfigure
|
||||
exit 0
|
||||
@ -105,13 +112,6 @@ case "$1" in
|
||||
fi
|
||||
}
|
||||
|
||||
# and that its directories are available
|
||||
[ "$CTDB_NFS_SKIP_SHARE_CHECK" = "yes" ] || {
|
||||
exportfs | grep -v '^#' | grep '^/' |
|
||||
sed -e 's/[[:space:]]\+[^[:space:]]*$//' |
|
||||
ctdb_check_directories
|
||||
} || exit $?
|
||||
|
||||
# check that lockd responds to rpc requests
|
||||
if ctdb_check_rpc "LOCKD" 100021 1 >/dev/null ; then
|
||||
(service_name="lockd"; ctdb_counter_init)
|
||||
|
Loading…
x
Reference in New Issue
Block a user