Print this page
Split Close
Expand all
Collapse all
          --- /workspace/du105637/oscposthot/webrev/usr/src/cmd/ha-services/gds-agents/PostgreSQL/pgs_smf_register.ksh-
          +++ pgs_smf_register.ksh
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # When distributing Covered Code, include this CDDL HEADER in each
  15   15  # file and include the License file at usr/src/CDDL.txt.
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets [] replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  
  23   23  #
  24      -# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
       24 +# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  25   25  # Use is subject to license terms.
  26   26  #
  27   27  
  28   28  #ident  "%Z%%M% %I%     %E% SMI"
  29   29  
  30   30  MYDIR=/opt/SUNWscPostgreSQL
  31   31  MYFILE=
  32   32  MYCONFIG=
  33   33  MANIFEST_DIR=/var/svc/manifest/application/sczone-agents
  34   34  
↓ open down ↓ 24 lines elided ↑ open up ↑
  59   59          if [ ! -d "${MANIFEST_DIR}" ]
  60   60          then
  61   61                  mkdir -p ${MANIFEST_DIR}
  62   62          fi
  63   63                  
  64   64          cat > ${MANIFEST_DIR}/${MYFILE}.xml <<-EOF
  65   65          <?xml version="1.0"?>
  66   66          <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
  67   67  
  68   68          <!--
  69      -            Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
       69 +            Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  70   70              Use is subject to license terms.
  71   71  
  72   72          -->
  73   73  
  74   74          <service_bundle type='manifest' name='${MYFILE}'>
  75   75  
  76   76          <service
  77   77          name='application/sczone-agents'
  78   78          type='service'
  79   79          version='1'>
↓ open down ↓ 1 lines elided ↑ open up ↑
  81   81          <!--
  82   82              Common dependencies for the service
  83   83          -->
  84   84  
  85   85          <dependency name='pgs_services'
  86   86          grouping='require_all'
  87   87          restart_on='none'
  88   88          type='service'>
  89   89                  <service_fmri value='svc:/milestone/multi-user-server'/>
  90   90                  <service_fmri value='svc:/network/loopback'/>
  91      -                <service_fmri value='svc:/network/physical'/>
  92   91          </dependency>
  93   92  
  94   93          <instance name='${MYFILE}' enabled='false'>
  95   94  
  96   95  
  97   96          <exec_method
  98   97          type='method'
  99   98          name='start'
 100   99          exec='${MYDIR}/bin/control_pgs start'
 101  100          timeout_seconds='300' >
↓ open down ↓ 139 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX