New rolechg_config.ksh
  1 #
  2 # CDDL HEADER START
  3 #
  4 # The contents of this file are subject to the terms of the
  5 # Common Development and Distribution License (the License).
  6 # You may not use this file except in compliance with the License.
  7 #
  8 # You can obtain a copy of the license at usr/src/CDDL.txt
  9 # or http://www.opensolaris.org/os/licensing.
 10 # See the License for the specific language governing permissions
 11 # and limitations under the License.
 12 #
 13 # When distributing Covered Code, include this CDDL HEADER in each
 14 # file and include the License file at usr/src/CDDL.txt.
 15 # If applicable, add the following below this CDDL HEADER, with the
 16 # fields enclosed by brackets [] replaced with your own identifying
 17 # information: Portions Copyright [yyyy] [name of copyright owner]
 18 #
 19 # CDDL HEADER END
 20 #
 21 
 22 #
 23 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 24 # Use is subject to license terms.
 25 #
 26 
 27 # ident   "%Z%%M% %I%     %E% SMI"
 28 # 
 29 # This file will be sourced in by rolechg_register and the parameters
 30 # listed below will be used.
 31 #
 32 # These parameters can be customized in (key=value) form
 33 #
 34 #                RS - name of the resource for the application.
 35 #                RG - name of the resource group containing RS.
 36 #              PORT - name of the port number.
 37 #                LH - name of the LogicalHostname SC resource.
 38 #                     Do not set the LH variable if you plan to have a network 
 39 #                     unaware installation.
 40 #            HAS_RS - Name of the HAStoragePlus SC resource.
 41 #          STDBY_RS - The resource name of designated standby database
 42 #            PRI_RS - The resource name of designated primary database
 43 #        STDBY_HOST - Hostname  or zonename of the standby host. If empty, a role switch
 44 #                     will be initiated on any host. 
 45 #        SDBY_PFILE - Parameter file which contains the PostgreSQL specific 
 46 #                     parameters for the standby database. This file is mentioned in 
 47 #                     the Start_command of the PostgreSQL standby resource.
 48 #           TRIGGER - The filename which will get created to tell pg_standby to end the 
 49 #                     recovery mode, this filename is mentioned in the recovery.conf file 
 50 #                     of the PostgreSQL standby database.
 51 #              WAIT - A number of seconds the start method waits before it touches
 52 #                     the trigger file. this little break is necessary because, if the 
 53 #                     trigger file should be touched before, or in the middle of the 
 54 #                     PostgreSQL start process, it would get removed automatically.
 55 #
 56 
 57 RS=
 58 RG=
 59 PORT=
 60 LH=
 61 HAS_RS=
 62 STDBY_RS=
 63 PRI_RS=
 64 STDBY_HOST=
 65 STDBY_PFILE=
 66 TRIGGER=
 67 WAIT=