xref: /titanic_50/usr/src/cmd/dfs.cmds/sharemgr/group.xml (revision b9bd317cda1afb3a01f4812de73e8cec888cbbd7)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4
5 CDDL HEADER START
6
7	The contents of this file are subject to the terms of the
8	Common Development and Distribution License (the "License").
9	You may not use this file except in compliance with the License.
10
11	You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12	or http://www.opensolaris.org/os/licensing.
13	See the License for the specific language governing permissions
14	and limitations under the License.
15
16	When distributing Covered Code, include this CDDL HEADER in each
17	file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18	If applicable, add the following below this CDDL HEADER, with the
19	fields enclosed by brackets "[]" replaced with your own identifying
20	information: Portions Copyright [yyyy] [name of copyright owner]
21
22 CDDL HEADER END
23
24	Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25	Use is subject to license terms.
26
27	ident	"%Z%%M%	%I%	%E% SMI"
28
29	NOTE:  This service manifest is not editable; its contents will
30	be overwritten by package or patch operations, including
31	operating system upgrade.  Make customizations in a different
32	file.
33
34-->
35
36<service_bundle type='manifest' name='SUNWshmr:group'>
37
38<service
39	name='network/shares/group'
40	type='service'
41	version='1'>
42
43	<create_default_instance enabled='true' />
44
45	<!-- Must have all local filesystems mounted before we share them -->
46	<dependency name='filesystem-local'
47	    grouping='require_all'
48	    restart_on='error'
49	    type='service'>
50	    	<service_fmri value='svc:/system/filesystem/local' />
51	</dependency>
52	<!-- Also want to have some form of networking up -->
53	<dependency name='network'
54	    grouping='require_any'
55	    restart_on='error'
56	    type='service'>
57		<service_fmri value='svc:/milestone/network' />
58	</dependency>
59	<!--
60	  SMB is optional_all so that we don't have to have SMB
61	  enabled to work, but if it is, we want to run "after" the
62	  smb/service starts.
63	-->
64	<dependency name='smb'
65	    grouping='optional_all'
66	    restart_on='error'
67	    type='service'>
68		<service_fmri value='svc:/network/smb/server' />
69	</dependency>
70
71	<!--
72	  The start method will cause each share group to be
73	  activated. since these are done in parallel and have been
74	  pre-checked for sanity, the shareall equivalent should not
75	  take overly long, but be prepared.
76	 -->
77
78	 <exec_method
79	    type='method'
80	    name='start'
81	    exec='/usr/sbin/sharemgr start %i'
82	    timeout_seconds='3600' />
83
84	 <exec_method
85	    type='method'
86	    name='stop'
87	    exec='/usr/sbin/sharemgr stop %i'
88	    timeout_seconds='3600' />
89
90	 <exec_method
91	    type='method'
92	    name='restart'
93	    exec='/usr/sbin/sharemgr start %i'
94	    timeout_seconds='3600' />
95
96	 <exec_method
97	    type='method'
98	    name='refresh'
99	    exec='/usr/sbin/sharemgr start %i'
100	    timeout_seconds='3600' />
101
102	 <property_group name='general' type='framework'>
103		<!-- to start/stop service -->
104		<propval name='action_authorization' type='astring'
105                        value='solaris.smf.manage.group' />
106		<propval name='value_authorization' type='astring'
107                        value='solaris.smf.manage.group' />
108	 </property_group>
109	<property_group name='startd' type='framework'>
110		<propval name='duration' type='astring'
111			value='transient' />
112	</property_group>
113	<template>
114		<common_name>
115			<loctext xml:lang='C'>
116			Share Group
117			</loctext>
118		</common_name>
119		<documentation>
120			<manpage title='sharemgr' section='1M'
121				 manpath='/usr/share/man' />
122		</documentation>
123	</template>
124
125</service>
126
127</service_bundle>
128