This makes it easier to run the scripts externally.
Signed-off-by: Martin Schwenke <martin@meltin.net>
# releaseip : called when an IP address is released
# recovered : called when ctdb has finished a recovery event
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig
#!/bin/sh
# script to check accessibility to the reclock file on a node
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig
# this adds/removes IPs from your
# public interface
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig
# available.
#
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig
# Example
# bond1 10.3.3.0/24 10.0.0.1
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig
#!/bin/sh
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig
# CTDB_MONITOR_MPDEVICES="device1 device2 ..."
#
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
service_name="multipathd"
#!/bin/sh
# event script to manage clamd in a cluster environment
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
detect_init_style
#!/bin/sh
# ctdb event script for checking local file system utilization
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig
#!/bin/sh
# event strict to manage vsftpd in a cluster environment
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
service_name="vsftpd"
#!/bin/sh
# event script to manage httpd in a cluster environment
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
detect_init_style
#!/bin/sh
# ctdb event script for winbind
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
detect_init_style
#!/bin/sh
# ctdb event script for Samba
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
detect_init_style
#!/bin/sh
# script to manage nfs in a clustered environment
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
service_name="nfs-ganesha-gpfs"
#!/bin/sh
# script to manage nfs in a clustered environment
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
service_name="nfs"
#!/bin/sh
# event script to integrate with gpfs cnfs
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig
#!/bin/sh
# ctdb event script for TGTD based iSCSI
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
service_name="iscsi"
#!/bin/sh
# script to manage the lvs ip multiplexer for a single public address cluster
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig ctdb
# in the monitor action. The purpose is to trigger
# the event timeout mechanism.
+[ -n "$CTDB_BASE" ] || \
+ export CTDB_BASE=$(cd -P $(dirname "$0") ; dirname "$PWD")
+
. $CTDB_BASE/functions
loadconfig ctdb