summaryrefslogtreecommitdiffstats
path: root/ctdb/server/eventscript.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-09-04 09:50:07 +1000
committerRonnie Sahlberg <sahlberg@ronnie>2007-09-04 09:50:07 +1000
commit12ebb74838ded09420f087e555c6efffef6db98b (patch)
tree4b1bd79fdf4c224594995734e3e4777abea44f27 /ctdb/server/eventscript.c
parent4495dbacecf7363bf79f8bac525c3e5431f16643 (diff)
downloadsamba-12ebb74838ded09420f087e555c6efffef6db98b.tar.gz
samba-12ebb74838ded09420f087e555c6efffef6db98b.tar.xz
samba-12ebb74838ded09420f087e555c6efffef6db98b.zip
change how we do public addresses and takeover so that we can have
multiple public addresses spread across multiple interfaces on each node. this is a massive patch since we have previously made the assumtion that we only have one public address per node. get rid of the public_interface argument. the public addresses file now explicitely lists which interface the address belongs to (This used to be ctdb commit 462ebbc791e906a6b874c862defea43235597ca8)
Diffstat (limited to 'ctdb/server/eventscript.c')
-rw-r--r--ctdb/server/eventscript.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c
index c7339a355a..d82d9d7f7c 100644
--- a/ctdb/server/eventscript.c
+++ b/ctdb/server/eventscript.c
@@ -75,9 +75,9 @@ static int ctdb_event_script_v(struct ctdb_context *ctdb, const char *fmt, va_li
/*
the service specific event scripts
*/
- if (stat(ctdb->takeover.event_script_dir, &st) != 0 &&
+ if (stat(ctdb->event_script_dir, &st) != 0 &&
errno == ENOENT) {
- DEBUG(0,("No event script directory found at '%s'\n", ctdb->takeover.event_script_dir));
+ DEBUG(0,("No event script directory found at '%s'\n", ctdb->event_script_dir));
talloc_free(tmp_ctx);
return -1;
}
@@ -88,9 +88,9 @@ static int ctdb_event_script_v(struct ctdb_context *ctdb, const char *fmt, va_li
/* scan all directory entries and insert all valid scripts into the
tree
*/
- dir = opendir(ctdb->takeover.event_script_dir);
+ dir = opendir(ctdb->event_script_dir);
if (dir == NULL) {
- DEBUG(0,("Failed to open event script directory '%s'\n", ctdb->takeover.event_script_dir));
+ DEBUG(0,("Failed to open event script directory '%s'\n", ctdb->event_script_dir));
talloc_free(tmp_ctx);
return -1;
}
@@ -120,7 +120,7 @@ static int ctdb_event_script_v(struct ctdb_context *ctdb, const char *fmt, va_li
}
/* Make sure the event script is executable */
- str = talloc_asprintf(tree, "%s/%s", ctdb->takeover.event_script_dir, de->d_name);
+ str = talloc_asprintf(tree, "%s/%s", ctdb->event_script_dir, de->d_name);
if (stat(str, &st) != 0) {
DEBUG(0,("Could not stat event script %s. Ignoring this event script\n", str));
continue;
@@ -152,7 +152,7 @@ static int ctdb_event_script_v(struct ctdb_context *ctdb, const char *fmt, va_li
CTDB_NO_MEMORY(ctdb, options);
cmdstr = talloc_asprintf(tmp_ctx, "%s/%s %s",
- ctdb->takeover.event_script_dir,
+ ctdb->event_script_dir,
script, options);
CTDB_NO_MEMORY(ctdb, cmdstr);