1 <?xml version="1.0"?>
   2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
   3 <!--
   4 CDDL HEADER START
   5 
   6 The contents of this file are subject to the terms of the
   7 Common Development and Distribution License (the "License").
   8 You may not use this file except in compliance with the License.
   9 
  10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  11 or http://www.opensolaris.org/os/licensing.
  12 See the License for the specific language governing permissions
  13 and limitations under the License.
  14 
  15 When distributing Covered Code, include this CDDL HEADER in each
  16 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17 If applicable, add the following below this CDDL HEADER, with the
  18 fields enclosed by brackets "[]" replaced with your own identifying
  19 information: Portions Copyright [yyyy] [name of copyright owner]
  20 
  21 CDDL HEADER END
  22 
  23         Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24         Use is subject to license terms.
  25 
  26         Service manifest for Availability Suite init.
  27 -->
  28 
  29 <service_bundle type='manifest' name='SUNWscmr:nws_rdc'>
  30 
  31 <service
  32         name='system/nws_rdc'
  33         type='service'
  34         version='1'>
  35 
  36         <create_default_instance enabled='false' />
  37 
  38         <single_instance />
  39 
  40         <dependency
  41          name='nws_rdc_sv'
  42          type='service'
  43          grouping='require_all'
  44          restart_on='none'>
  45             <service_fmri value='svc:/system/nws_sv' />
  46         </dependency>
  47 
  48         <dependency
  49          name='nws_rdc_ii'
  50          type='service'
  51          grouping='optional_all'
  52          restart_on='none'>
  53             <service_fmri value='svc:/system/nws_ii' />
  54         </dependency>
  55 
  56         <!--
  57           We need to make sure that no user filesystems can mount until
  58           AVS has configured, since user filesystems may be mounted on
  59           volumes under AVS control
  60         -->
  61         <dependent
  62             name='nws_rdc-local-fs'
  63             grouping='optional_all'
  64             restart_on='none'>
  65                 <service_fmri value='svc:/system/filesystem/local' />
  66         </dependent>
  67 
  68         <exec_method
  69             type='method'
  70             name='start'
  71             exec='/lib/svc/method/svc-rdc %m'
  72             timeout_seconds='300' />
  73 
  74         <exec_method
  75             type='method'
  76             name='stop'
  77             exec='/lib/svc/method/svc-rdc %m'
  78             timeout_seconds='600' />
  79 
  80         <property_group
  81             name='startd'
  82             type='framework'>
  83                 <propval
  84                     name='duration'
  85                     type='astring'
  86                     value='transient' />
  87         </property_group>
  88 
  89 
  90         <stability value='Unstable' />
  91 
  92         <template>
  93                 <common_name>
  94                         <loctext xml:lang='C'>
  95                                 Network Storage Remote Data Replication Init service.
  96                         </loctext>
  97                 </common_name>
  98 
  99                 <documentation>
 100                         <manpage
 101                             title='sndrd'
 102                             section='1rdc'
 103                             manpath='/usr/share/man' />
 104                 </documentation>
 105         </template>
 106 </service>
 107 
 108 </service_bundle>