]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
when we shutdown the service due to receiving a 'ctdb shutdown' command
authorRonnie Sahlberg <sahlberg@ronnie>
Mon, 20 Aug 2007 23:46:27 +0000 (09:46 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Mon, 20 Aug 2007 23:46:27 +0000 (09:46 +1000)
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

index 0b13afffaba55bd68ca38345290a4ad2f5b08a9d..e134850cf46318be362cf50b4f235a77730e1bec 100644 (file)
@@ -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: