mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
Log the "Received SHUTDOWN ..." first in the shutown process instead of last.
Sometimes ctdb is termnated ifrom the initscript if the shutdown takes too long an no message is logged. (This used to be ctdb commit d3542d43141c1548bab356fbdef34dfedb4f167f)
This commit is contained in:
parent
574b47e23f
commit
c47da8b028
@ -308,6 +308,7 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
|
||||
return 0;
|
||||
|
||||
case CTDB_CONTROL_SHUTDOWN:
|
||||
DEBUG(DEBUG_NOTICE,("Received SHUTDOWN command. Stopping CTDB daemon.\n"));
|
||||
ctdb_stop_recoverd(ctdb);
|
||||
ctdb_stop_keepalive(ctdb);
|
||||
ctdb_stop_monitoring(ctdb);
|
||||
@ -316,7 +317,6 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
|
||||
ctdb->methods->shutdown(ctdb);
|
||||
}
|
||||
ctdb_event_script(ctdb, CTDB_EVENT_SHUTDOWN);
|
||||
DEBUG(DEBUG_NOTICE,("Received SHUTDOWN command. Stopping CTDB daemon.\n"));
|
||||
exit(0);
|
||||
|
||||
case CTDB_CONTROL_TAKEOVER_IPv4:
|
||||
|
Loading…
x
Reference in New Issue
Block a user