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)
# 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" ] || \