diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-07-17 12:26:16 +1000 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-07-17 12:26:16 +1000 |
commit | e5e9fc48b1b446392965472bc4eb3755eb2ddefd (patch) | |
tree | 14cf96aa2aa606e6f9d178d2b71028f46de8f069 /ctdb/server/eventscript.c | |
parent | df00979158acef1a19598495ccf023c33906061f (diff) | |
download | samba-e5e9fc48b1b446392965472bc4eb3755eb2ddefd.tar.gz samba-e5e9fc48b1b446392965472bc4eb3755eb2ddefd.tar.xz samba-e5e9fc48b1b446392965472bc4eb3755eb2ddefd.zip |
create a new event : stopped.
This event is called when a node is stopped and is used by eventscripts that need to do certain cleanup and removal of configuration or ip addresses or routing ...
Note that a STOPPED node is considered "inactive" and as such will not be running the "recovered" event when the rest of the cluster has recovered.
(This used to be ctdb commit 65e9309564611bf937ded3c74a79abff895d7c59)
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r-- | ctdb/server/eventscript.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c index cc5a89fe7e..9ea2e120e4 100644 --- a/ctdb/server/eventscript.c +++ b/ctdb/server/eventscript.c @@ -325,7 +325,7 @@ static int ctdb_event_script_v(struct ctdb_context *ctdb, const char *options) if (ctdb->recovery_mode != CTDB_RECOVERY_NORMAL) { /* we guarantee that only some specifically allowed event scripts are run while in recovery */ - const char *allowed_scripts[] = {"startrecovery", "shutdown", "releaseip" }; + const char *allowed_scripts[] = {"startrecovery", "shutdown", "releaseip", "stopped" }; int i; for (i=0;i<ARRAY_SIZE(allowed_scripts);i++) { if (strncmp(options, allowed_scripts[i], strlen(allowed_scripts[i])) == 0) break; |