mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +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:
parent
71e9016ec2
commit
609a1e5c77
@ -16,7 +16,9 @@ loadconfig
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
MPFAILURE=$CTDB_VARDIR/state/multipathd/failure
|
ctdb_setup_service_state_dir
|
||||||
|
|
||||||
|
MPFAILURE="$service_state_dir/failure"
|
||||||
|
|
||||||
multipathd_check_background()
|
multipathd_check_background()
|
||||||
{
|
{
|
||||||
@ -75,13 +77,6 @@ multipathd_check()
|
|||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
startup)
|
|
||||||
# create a state directory to keep/track the multipath device
|
|
||||||
# state
|
|
||||||
mkdir -p $CTDB_VARDIR/state/multipathd
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
|
|
||||||
monitor)
|
monitor)
|
||||||
multipathd_check
|
multipathd_check
|
||||||
[ "$?" = "0" ] || {
|
[ "$?" = "0" ] || {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user