xref: /titanic_41/usr/src/cmd/dfs.cmds/sharemgr/group.xml (revision 9113a79cf228b8f7bd509b1328adf88659dfe218)
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	<!--
61	  The start method will cause each share group to be
62	  activated. since these are done in parallel and have been
63	  pre-checked for sanity, the shareall equivalent should not
64	  take overly long, but be prepared.
65	 -->
66
67	 <exec_method
68	    type='method'
69	    name='start'
70	    exec='/usr/sbin/sharemgr start %i'
71	    timeout_seconds='3600' />
72
73	 <exec_method
74	    type='method'
75	    name='stop'
76	    exec='/usr/sbin/sharemgr stop %i'
77	    timeout_seconds='3600' />
78
79	 <exec_method
80	    type='method'
81	    name='restart'
82	    exec='/usr/sbin/sharemgr start %i'
83	    timeout_seconds='3600' />
84
85	 <exec_method
86	    type='method'
87	    name='refresh'
88	    exec='/usr/sbin/sharemgr start %i'
89	    timeout_seconds='3600' />
90
91	 <property_group name='general' type='framework'>
92		<!-- to start/stop service -->
93		<propval name='action_authorization' type='astring'
94                        value='solaris.smf.manage.group' />
95		<propval name='value_authorization' type='astring'
96                        value='solaris.smf.manage.group' />
97	 </property_group>
98	<property_group name='startd' type='framework'>
99		<propval name='duration' type='astring'
100			value='transient' />
101	</property_group>
102	<template>
103		<common_name>
104			<loctext xml:lang='C'>
105			Share Group
106			</loctext>
107		</common_name>
108		<documentation>
109			<manpage title='sharemgr' section='1M'
110				 manpath='/usr/share/man' />
111		</documentation>
112	</template>
113
114</service>
115
116</service_bundle>
117