From 4e4dd6b88684a315b751aae77dde3cc3a735404b Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 21 Aug 2007 09:46:27 +1000 Subject: [PATCH] when we shutdown the service due to receiving a 'ctdb shutdown' command from the administrator, log this as 'Received SHUTDOWN command. Stopping CTDB daemon.' so that the administrator will know when looking at the log 'why' the ctdb service was terminated. Previously the only thing logged was 'shutting down' which is not detailed enough. (This used to be ctdb commit 5b818c1b72b6594a8d6e45e1865026e3ce33ae63) --- ctdb/server/ctdb_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/server/ctdb_control.c b/ctdb/server/ctdb_control.c index 0b13afffaba..e134850cf46 100644 --- a/ctdb/server/ctdb_control.c +++ b/ctdb/server/ctdb_control.c @@ -230,7 +230,7 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb, ctdb_release_all_ips(ctdb); ctdb->methods->shutdown(ctdb); ctdb_event_script(ctdb, "shutdown"); - DEBUG(0,("shutting down\n")); + DEBUG(0,("Received SHUTDOWN command. Stopping CTDB daemon.\n")); exit(0); case CTDB_CONTROL_MAX_RSN: -- 2.47.3