mirror of
https://github.com/samba-team/samba.git
synced 2025-03-23 06:50:21 +03:00
Eventscripts - use ctdb scriptstatus -Y when replaying status
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 5be904fb1fbd546618d25509b41ab836db62a70a)
This commit is contained in:
parent
b97625acb6
commit
aa64622137
@ -1056,8 +1056,8 @@ ctdb_reconfigure_try_lock ()
|
||||
ctdb_replay_monitor_status ()
|
||||
{
|
||||
echo "Replaying previous status for this script due to reconfigure..."
|
||||
ctdb scriptstatus | \
|
||||
grep -q -E "^${script_name}[[:space:]]+Status:OK[[:space:]]"
|
||||
ctdb scriptstatus -Y | \
|
||||
grep -q -F ":${script_name}:0:OK:"
|
||||
exit $?
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user