xref: /titanic_51/usr/src/cmd/dfs.cmds/sharemgr/group.xml (revision a12e05a04a5d5850f645c79e7e2c74f8d6b7c5ec)
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 2006 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
53	<!--
54	  The start method will cause each share group to be
55	  activated. since these are done in parallel and have been
56	  pre-checked for sanity, the shareall equivalent should not
57	  take overly long, but be prepared.
58	 -->
59
60	 <exec_method
61	    type='method'
62	    name='start'
63	    exec='/usr/sbin/sharemgr start %i'
64	    timeout_seconds='3600' />
65
66	 <exec_method
67	    type='method'
68	    name='stop'
69	    exec='/usr/sbin/sharemgr stop %i'
70	    timeout_seconds='3600' />
71
72	 <exec_method
73	    type='method'
74	    name='restart'
75	    exec='/usr/sbin/sharemgr start %i'
76	    timeout_seconds='3600' />
77
78	 <exec_method
79	    type='method'
80	    name='refresh'
81	    exec='/usr/sbin/sharemgr start %i'
82	    timeout_seconds='3600' />
83
84	 <property_group name='general' type='framework'>
85		<!-- to start/stop service -->
86		<propval name='action_authorization' type='astring'
87                        value='solaris.smf.manage.group' />
88		<propval name='value_authorization' type='astring'
89                        value='solaris.smf.manage.group' />
90	 </property_group>
91	<property_group name='startd' type='framework'>
92		<propval name='duration' type='astring'
93			value='transient' />
94	</property_group>
95
96</service>
97
98</service_bundle>
99