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

« back to all changes in this revision

Viewing changes to resources/heartbeat/db2

  • 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
 
4
 
# Description:  wrapper of OCF RA db2, based on original heartbeat RA.
5
 
#               See OCF RA db2 for more information. 
6
 
#
7
 
# Author:       Xun Sun <xunsun@cn.ibm.com>
8
 
# Support:      linux-ha@lists.linux-ha.org
9
 
# License:      GNU General Public License (GPL)
10
 
# Copyright:    (C) 2005 International Business Machines, Inc.
11
 
#
12
 
# An example usage in /etc/ha.d/haresources: 
13
 
#       node1  10.0.0.170 db2::db2inst1
14
 
#
15
 
# See usage() function below for more details...
16
 
#
17
 
 
18
 
. /etc/ha.d/resource.d//hto-mapfuncs
19
 
 
20
 
usage() {
21
 
    echo "usage: $0 db2-database-owner-id $LEGAL_ACTIONS"
22
 
    exit 1
23
 
}
24
 
 
25
 
if [ $# != 2 ]; then
26
 
    usage
27
 
fi
28
 
 
29
 
OCF_TYPE=db2
30
 
OCF_RESOURCE_INSTANCE=${OCF_TYPE}_$1
31
 
export OCF_TYPE OCF_RESOURCE_INSTANCE
32
 
 
33
 
OCF_RESKEY_instance=$1; export OCF_RESKEY_instance
34
 
ra_execocf $2