mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Initscript: Kill any existing ctdbd processes if the ping succeeds
Initialising a new ctdbd will destroy the Unix domain socket so existing processes will be useless anyway. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 043ef77086797a703aec436a26a05c56a1bcbf2b)
This commit is contained in:
parent
1aaaf7e20e
commit
e2d4250731
@ -257,6 +257,12 @@ start() {
|
||||
return 0
|
||||
}
|
||||
|
||||
# About to start new $ctdbd. The ping above has failed and any
|
||||
# new $ctdbd will destroy the Unix domain socket, so any processes
|
||||
# that aren't yet completely useless soon will be... so kill
|
||||
# them.
|
||||
pkill -9 -f "$ctdbd"
|
||||
|
||||
build_ctdb_options
|
||||
|
||||
# make sure we drop any ips that might still be held if previous
|
||||
|
Loading…
Reference in New Issue
Block a user