git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87e6a4a
)
Evenscripts: update 20.multipathd to use ctdb_setup_service_state_dir.
author
Martin Schwenke
<martin@meltin.net>
Wed, 15 Dec 2010 21:45:28 +0000
(08:45 +1100)
committer
Martin Schwenke
<martin@meltin.net>
Tue, 9 Aug 2011 07:28:09 +0000
(17:28 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
config/events.d/20.multipathd
patch
|
blob
|
history
diff --git
a/config/events.d/20.multipathd
b/config/events.d/20.multipathd
index 73b6054f449c72e4cf2fed0b546845a7b6294c94..1bf7070fb58e5fba640e8009080eb5da918bb79b 100755
(executable)
--- a/
config/events.d/20.multipathd
+++ b/
config/events.d/20.multipathd
@@
-16,7
+16,9
@@
loadconfig
exit 0
}
-MPFAILURE=$CTDB_VARDIR/state/multipathd/failure
+ctdb_setup_service_state_dir
+
+MPFAILURE="$service_state_dir/failure"
multipathd_check_background()
{
@@
-75,13
+77,6
@@
multipathd_check()
}
case "$1" in
- startup)
- # create a state directory to keep/track the multipath device
- # state
- mkdir -p $CTDB_VARDIR/state/multipathd
- exit 0
- ;;
-
monitor)
multipathd_check
[ "$?" = "0" ] || {