From: Ronnie Sahlberg Date: Mon, 20 Aug 2007 23:46:27 +0000 (+1000) Subject: when we shutdown the service due to receiving a 'ctdb shutdown' command X-Git-Tag: tevent-0.9.20~348^2~2437^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e4dd6b88684a315b751aae77dde3cc3a735404b;p=thirdparty%2Fsamba.git 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) --- 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: