4
# Support: linux-ha-dev@lists.tummy.com
5
# License: GNU General Public License (GPL)
7
# This script sets the node (where it was called) to *standby*
8
# It forces the node to release all the held resources and lets
9
# the other node do a takeover.
11
# This script will only work for a two machine setup...
12
# More than that and you need to vote, or something...
15
. ${HA_DIR}/shellfuncs
21
echo "$0 [all|foreign|local|failback]" >&2
28
echo "$0: too many arguments"
41
if [ $resources != "all" ] && [ $resources != "foreign" ] &&
42
[ $resources != "local" ] && [ $resources != "failback" ] &&
43
[ $resources != "--help" ]; then
44
echo "$0: wrong resources($resources)."
51
failback) resources=foreign;;
55
ha_log "Going standby [$resources]."