diff options
| author | Martin Schwenke <martin@meltin.net> | 2010-12-16 08:45:28 +1100 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2011-08-09 17:28:09 +1000 |
| commit | 609a1e5c7766da47c16d7ef4e771735377ebe6e2 (patch) | |
| tree | ef19c5f4cb8e4af114013819d6bd008e8aa158ed | |
| parent | 71e9016ec2c14d7c57a23d3fda457c8540beb2ee (diff) | |
| download | samba-609a1e5c7766da47c16d7ef4e771735377ebe6e2.tar.gz samba-609a1e5c7766da47c16d7ef4e771735377ebe6e2.tar.xz samba-609a1e5c7766da47c16d7ef4e771735377ebe6e2.zip | |
Evenscripts: update 20.multipathd to use ctdb_setup_service_state_dir.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 797ca65bdd59b14325ffd32b4d4140e9b01dbe71)
| -rwxr-xr-x | ctdb/config/events.d/20.multipathd | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/ctdb/config/events.d/20.multipathd b/ctdb/config/events.d/20.multipathd index 73b6054f44..1bf7070fb5 100755 --- a/ctdb/config/events.d/20.multipathd +++ b/ctdb/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" ] || { |
