~ampelbein/ubuntu/oneiric/heartbeat/lp-770743

« back to all changes in this revision

Viewing changes to heartbeat/lib/hb_delnode

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2009-08-10 19:29:25 UTC
  • mfrom: (5.2.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20090810192925-9zy2llcbgavbskf7
Tags: 2.99.2+sles11r9-5ubuntu1
* New upstream snapshot
* Adjusted heartbeat.install and rules for documentation path

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# Support:      linux-ha-dev@lists.tummy.com
4
 
# License:      GNU General Public License (GPL)
5
 
# This script sets the node (where it was called) to *active*
6
 
# It forces the other node to release all the held resources and lets
7
 
# this node do a takeover.
8
 
#
9
 
#       This script will only work for a two machine setup...
10
 
#       More than that and you need to vote, or something...
11
 
 
12
 
 
13
 
HA_DIR=/etc/ha.d
14
 
. ${HA_DIR}/shellfuncs
15
 
 
16
 
usage() {
17
 
        echo "usage: hb_delnode <node> <node> ..."
18
 
        exit 1
19
 
}
20
 
 
21
 
if 
22
 
  [ $# = 0 ]
23
 
then
24
 
        usage
25
 
fi
26
 
 
27
 
nodelist="$@"
28
 
if [ "$nodelist" = "--help" ]; then
29
 
        usage
30
 
fi
31
 
 
32
 
ha_clustermsg <<-!MSG
33
 
        t=delnode
34
 
        nodelist=$nodelist
35
 
!MSG
36
 
 
37