1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

scripts: Ensure service command is in $PATH in ctdb-crash-cleanup.sh

Move the use of the service command below inclusion of functions file,
which sets $PATH.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit d254d03f69cbdc3e473202b759af6e1392cbb59c)
This commit is contained in:
Martin Schwenke 2013-04-19 13:10:27 +10:00
parent d24077922f
commit f54dab03d5

View File

@ -4,16 +4,16 @@
# all public ip addresses if CTDBD has crashed or stopped running.
#
# If ctdb is running, just exit
if service ctdb status >/dev/null 2>&1 ; then
exit 0
fi
[ -n "$CTDB_BASE" ] || \
export CTDB_BASE=$(cd -P $(dirname "$0") ; echo "$PWD")
. "$CTDB_BASE/functions"
# If ctdb is running, just exit
if service ctdb status >/dev/null 2>&1 ; then
exit 0
fi
loadconfig ctdb
[ -n "$CTDB_PUBLIC_ADDRESSES" ] || \