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_scm'> 30 31 <service 32 name='system/nws_scm' 33 type='service' 34 version='1'> 35 36 <create_default_instance enabled='false' /> 37 38 <single_instance /> 39 40 <!-- 41 We want our services to start up after single-user mode. 42 This also satisfies our dependency on system/filesystem/minimal. 43 We need to make sure we have /usr and /var mounted. /usr, because 44 that's where our software is installed. /var, since that's where 45 ds.log is stored. Single-user also satisfies the nws_rdc dependency 46 on system/identity:node. 47 --> 48 <dependency 49 name='nws_scm-single-user' 50 type='service' 51 grouping='require_all' 52 restart_on='none'> 53 <service_fmri value='svc:/milestone/single-user' /> 54 </dependency> 55 56 <!-- 57 We need to make sure that all device links have been created in 58 the /dev tree, and that all local and fabric devices are 59 available. We also need to make sure that vxvm and svm devices 60 have been configured at this point. Right now, the 61 'milestone/devices' takes care of all of these. 62 --> 63 <dependency 64 name='nws_scm-dev-milestone' 65 type='service' 66 grouping='require_all' 67 restart_on='none'> 68 <service_fmri value='svc:/milestone/devices' /> 69 </dependency> 70 71 <!-- 72 We need to make sure that no user filesystems can mount until 73 AVS has configured, since user filesystems may be mounted on 74 volumes under AVS control 75 --> 76 <dependent 77 name='nws_scm-local-fs' 78 grouping='optional_all' 79 restart_on='none'> 80 <service_fmri value='svc:/system/filesystem/local' /> 81 </dependent> 82 83 <exec_method 84 type='method' 85 name='start' 86 exec='/lib/svc/method/svc-scm %m' 87 timeout_seconds='180' /> 88 89 <exec_method 90 type='method' 91 name='stop' 92 exec='/lib/svc/method/svc-scm %m' 93 timeout_seconds='180' /> 94 95 <property_group 96 name='startd' 97 type='framework'> 98 <propval 99 name='duration' 100 type='astring' 101 value='transient' /> 102 </property_group> 103 104 105 <stability value='Unstable' /> 106 107 <template> 108 <common_name> 109 <loctext xml:lang='C'> 110 Network Storage Core Init service. 111 </loctext> 112 </common_name> 113 114 <documentation> 115 <manpage 116 title='scmadm' 117 section='1scm' 118 manpath='/usr/share/man' /> 119 </documentation> 120 </template> 121 </service> 122 123 </service_bundle>