summaryrefslogtreecommitdiffstats
path: root/ctdb/config/events.d/20.multipathd
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2010-09-03 12:35:25 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2010-09-03 12:43:28 +1000
commitdc2f87737da7cdb4af5d4fd8f1875f00e92ea545 (patch)
tree64975eaf40f8ab27418e3e3ef3fa1e9b860dc4bd /ctdb/config/events.d/20.multipathd
parent7c682dda5961e577c3c81ad7106f8612d2d1752c (diff)
downloadsamba-dc2f87737da7cdb4af5d4fd8f1875f00e92ea545.tar.gz
samba-dc2f87737da7cdb4af5d4fd8f1875f00e92ea545.tar.xz
samba-dc2f87737da7cdb4af5d4fd8f1875f00e92ea545.zip
Dont store temporary runtime data in $CTDB_BASE/state
since that will usually be /etc/ctdb/state and storing this under /etc is just wrong. Add a new variable CTDB_VARDIR that defaults to /var/ctdb and store the data there instead. (This used to be ctdb commit 516423c25afa9861d9988096efa8a4a2b12b31b1)
Diffstat (limited to 'ctdb/config/events.d/20.multipathd')
-rw-r--r--ctdb/config/events.d/20.multipathd4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/config/events.d/20.multipathd b/ctdb/config/events.d/20.multipathd
index 091a7739b6..2f484a4760 100644
--- a/ctdb/config/events.d/20.multipathd
+++ b/ctdb/config/events.d/20.multipathd
@@ -16,7 +16,7 @@ loadconfig
exit 0
}
-MPFAILURE=$CTDB_BASE/state/multipathd/failure
+MPFAILURE=$CTDB_VARDIR/state/multipathd/failure
multipathd_check_background()
{
@@ -78,7 +78,7 @@ case "$1" in
startup)
# create a state directory to keep/track the multipath device
# state
- /bin/mkdir -p $CTDB_BASE/state/multipathd
+ /bin/mkdir -p $CTDB_VARDIR/state/multipathd
exit 0
;;