1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

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)
This commit is contained in:
Martin Schwenke 2010-12-16 08:45:28 +11:00
parent 71e9016ec2
commit 609a1e5c77

View File

@ -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" ] || {