xref: /titanic_51/usr/src/cmd/avs/svc/manifest/nws_scm.xml (revision fcf3ce441efd61da9bb2884968af01cb7c1452cc)
1*fcf3ce44SJohn Forte<?xml version="1.0"?>
2*fcf3ce44SJohn Forte<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3*fcf3ce44SJohn Forte<!--
4*fcf3ce44SJohn ForteCDDL HEADER START
5*fcf3ce44SJohn Forte
6*fcf3ce44SJohn ForteThe contents of this file are subject to the terms of the
7*fcf3ce44SJohn ForteCommon Development and Distribution License (the "License").
8*fcf3ce44SJohn ForteYou may not use this file except in compliance with the License.
9*fcf3ce44SJohn Forte
10*fcf3ce44SJohn ForteYou can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11*fcf3ce44SJohn Forteor http://www.opensolaris.org/os/licensing.
12*fcf3ce44SJohn ForteSee the License for the specific language governing permissions
13*fcf3ce44SJohn Forteand limitations under the License.
14*fcf3ce44SJohn Forte
15*fcf3ce44SJohn ForteWhen distributing Covered Code, include this CDDL HEADER in each
16*fcf3ce44SJohn Fortefile and include the License file at usr/src/OPENSOLARIS.LICENSE.
17*fcf3ce44SJohn ForteIf applicable, add the following below this CDDL HEADER, with the
18*fcf3ce44SJohn Fortefields enclosed by brackets "[]" replaced with your own identifying
19*fcf3ce44SJohn Forteinformation: Portions Copyright [yyyy] [name of copyright owner]
20*fcf3ce44SJohn Forte
21*fcf3ce44SJohn ForteCDDL HEADER END
22*fcf3ce44SJohn Forte
23*fcf3ce44SJohn Forte	Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*fcf3ce44SJohn Forte	Use is subject to license terms.
25*fcf3ce44SJohn Forte
26*fcf3ce44SJohn Forte	Service manifest for Availability Suite init.
27*fcf3ce44SJohn Forte-->
28*fcf3ce44SJohn Forte
29*fcf3ce44SJohn Forte<service_bundle type='manifest' name='SUNWscmr:nws_scm'>
30*fcf3ce44SJohn Forte
31*fcf3ce44SJohn Forte<service
32*fcf3ce44SJohn Forte	name='system/nws_scm'
33*fcf3ce44SJohn Forte	type='service'
34*fcf3ce44SJohn Forte	version='1'>
35*fcf3ce44SJohn Forte
36*fcf3ce44SJohn Forte	<create_default_instance enabled='false' />
37*fcf3ce44SJohn Forte
38*fcf3ce44SJohn Forte	<single_instance />
39*fcf3ce44SJohn Forte
40*fcf3ce44SJohn Forte	<!--
41*fcf3ce44SJohn Forte	  We want our services to start up after single-user mode.
42*fcf3ce44SJohn Forte	  This also satisfies our dependency on system/filesystem/minimal.
43*fcf3ce44SJohn Forte	  We need to make sure we have /usr and /var mounted.  /usr, because
44*fcf3ce44SJohn Forte	  that's where our software is installed.  /var, since that's where
45*fcf3ce44SJohn Forte	  ds.log is stored. Single-user also satisfies the nws_rdc dependency
46*fcf3ce44SJohn Forte	  on system/identity:node.
47*fcf3ce44SJohn Forte	-->
48*fcf3ce44SJohn Forte	<dependency
49*fcf3ce44SJohn Forte	    name='nws_scm-single-user'
50*fcf3ce44SJohn Forte	    type='service'
51*fcf3ce44SJohn Forte	    grouping='require_all'
52*fcf3ce44SJohn Forte	    restart_on='none'>
53*fcf3ce44SJohn Forte	    <service_fmri value='svc:/milestone/single-user' />
54*fcf3ce44SJohn Forte	</dependency>
55*fcf3ce44SJohn Forte
56*fcf3ce44SJohn Forte	<!--
57*fcf3ce44SJohn Forte	  We need to make sure that all device links have been created in
58*fcf3ce44SJohn Forte	  the /dev tree, and that all local and fabric devices are
59*fcf3ce44SJohn Forte	  available. We also need to make sure that vxvm and svm devices
60*fcf3ce44SJohn Forte	  have been configured at this point.  Right now, the
61*fcf3ce44SJohn Forte	  'milestone/devices' takes care of all of these.
62*fcf3ce44SJohn Forte	-->
63*fcf3ce44SJohn Forte	<dependency
64*fcf3ce44SJohn Forte	    name='nws_scm-dev-milestone'
65*fcf3ce44SJohn Forte	    type='service'
66*fcf3ce44SJohn Forte	    grouping='require_all'
67*fcf3ce44SJohn Forte	    restart_on='none'>
68*fcf3ce44SJohn Forte	    <service_fmri value='svc:/milestone/devices' />
69*fcf3ce44SJohn Forte	</dependency>
70*fcf3ce44SJohn Forte
71*fcf3ce44SJohn Forte	<!--
72*fcf3ce44SJohn Forte	  We need to make sure that no user filesystems can mount until
73*fcf3ce44SJohn Forte	  AVS has configured, since user filesystems may be mounted on
74*fcf3ce44SJohn Forte	  volumes under AVS control
75*fcf3ce44SJohn Forte	-->
76*fcf3ce44SJohn Forte	<dependent
77*fcf3ce44SJohn Forte	    name='nws_scm-local-fs'
78*fcf3ce44SJohn Forte	    grouping='optional_all'
79*fcf3ce44SJohn Forte	    restart_on='none'>
80*fcf3ce44SJohn Forte		<service_fmri value='svc:/system/filesystem/local' />
81*fcf3ce44SJohn Forte	</dependent>
82*fcf3ce44SJohn Forte
83*fcf3ce44SJohn Forte	<exec_method
84*fcf3ce44SJohn Forte	    type='method'
85*fcf3ce44SJohn Forte	    name='start'
86*fcf3ce44SJohn Forte	    exec='/lib/svc/method/svc-scm %m'
87*fcf3ce44SJohn Forte	    timeout_seconds='180' />
88*fcf3ce44SJohn Forte
89*fcf3ce44SJohn Forte	<exec_method
90*fcf3ce44SJohn Forte	    type='method'
91*fcf3ce44SJohn Forte	    name='stop'
92*fcf3ce44SJohn Forte	    exec='/lib/svc/method/svc-scm %m'
93*fcf3ce44SJohn Forte	    timeout_seconds='180' />
94*fcf3ce44SJohn Forte
95*fcf3ce44SJohn Forte	<property_group
96*fcf3ce44SJohn Forte	    name='startd'
97*fcf3ce44SJohn Forte	    type='framework'>
98*fcf3ce44SJohn Forte		<propval
99*fcf3ce44SJohn Forte		    name='duration'
100*fcf3ce44SJohn Forte		    type='astring'
101*fcf3ce44SJohn Forte		    value='transient' />
102*fcf3ce44SJohn Forte	</property_group>
103*fcf3ce44SJohn Forte
104*fcf3ce44SJohn Forte
105*fcf3ce44SJohn Forte	<stability value='Unstable' />
106*fcf3ce44SJohn Forte
107*fcf3ce44SJohn Forte	<template>
108*fcf3ce44SJohn Forte	    	<common_name>
109*fcf3ce44SJohn Forte		    	<loctext xml:lang='C'>
110*fcf3ce44SJohn Forte				Network Storage Core Init service.
111*fcf3ce44SJohn Forte			</loctext>
112*fcf3ce44SJohn Forte		</common_name>
113*fcf3ce44SJohn Forte
114*fcf3ce44SJohn Forte		<documentation>
115*fcf3ce44SJohn Forte		    	<manpage
116*fcf3ce44SJohn Forte			    title='scmadm'
117*fcf3ce44SJohn Forte			    section='1scm'
118*fcf3ce44SJohn Forte			    manpath='/usr/share/man' />
119*fcf3ce44SJohn Forte		</documentation>
120*fcf3ce44SJohn Forte	</template>
121*fcf3ce44SJohn Forte</service>
122*fcf3ce44SJohn Forte
123*fcf3ce44SJohn Forte</service_bundle>
124