xref: /illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/group.xml (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
16185db85Sdougm<?xml version="1.0"?>
26185db85Sdougm<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
36185db85Sdougm<!--
46185db85Sdougm
56185db85Sdougm CDDL HEADER START
66185db85Sdougm
76185db85Sdougm	The contents of this file are subject to the terms of the
86185db85Sdougm	Common Development and Distribution License (the "License").
96185db85Sdougm	You may not use this file except in compliance with the License.
106185db85Sdougm
116185db85Sdougm	You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
126185db85Sdougm	or http://www.opensolaris.org/os/licensing.
136185db85Sdougm	See the License for the specific language governing permissions
146185db85Sdougm	and limitations under the License.
156185db85Sdougm
166185db85Sdougm	When distributing Covered Code, include this CDDL HEADER in each
176185db85Sdougm	file and include the License file at usr/src/OPENSOLARIS.LICENSE.
186185db85Sdougm	If applicable, add the following below this CDDL HEADER, with the
196185db85Sdougm	fields enclosed by brackets "[]" replaced with your own identifying
206185db85Sdougm	information: Portions Copyright [yyyy] [name of copyright owner]
216185db85Sdougm
226185db85Sdougm CDDL HEADER END
236185db85Sdougm
24f345c0beSdougm	Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
256185db85Sdougm	Use is subject to license terms.
266185db85Sdougm
276185db85Sdougm	NOTE:  This service manifest is not editable; its contents will
286185db85Sdougm	be overwritten by package or patch operations, including
296185db85Sdougm	operating system upgrade.  Make customizations in a different
306185db85Sdougm	file.
316185db85Sdougm
326185db85Sdougm-->
336185db85Sdougm
346185db85Sdougm<service_bundle type='manifest' name='SUNWshmr:group'>
356185db85Sdougm
366185db85Sdougm<service
376185db85Sdougm	name='network/shares/group'
386185db85Sdougm	type='service'
396185db85Sdougm	version='1'>
406185db85Sdougm
416185db85Sdougm	<create_default_instance enabled='true' />
426185db85Sdougm
436185db85Sdougm	<!-- Must have all local filesystems mounted before we share them -->
446185db85Sdougm	<dependency name='filesystem-local'
456185db85Sdougm	    grouping='require_all'
466185db85Sdougm	    restart_on='error'
476185db85Sdougm	    type='service'>
486185db85Sdougm		<service_fmri value='svc:/system/filesystem/local' />
496185db85Sdougm	</dependency>
501cea05afSdougm	<!-- Also want to have some form of networking up -->
511cea05afSdougm	<dependency name='network'
521cea05afSdougm	    grouping='require_any'
531cea05afSdougm	    restart_on='error'
541cea05afSdougm	    type='service'>
551cea05afSdougm		<service_fmri value='svc:/milestone/network' />
561cea05afSdougm	</dependency>
57da6c28aaSamw	<!--
58da6c28aaSamw	  SMB is optional_all so that we don't have to have SMB
59da6c28aaSamw	  enabled to work, but if it is, we want to run "after" the
60da6c28aaSamw	  smb/service starts.
61da6c28aaSamw	-->
62da6c28aaSamw	<dependency name='smb'
63da6c28aaSamw	    grouping='optional_all'
64da6c28aaSamw	    restart_on='error'
65da6c28aaSamw	    type='service'>
66da6c28aaSamw		<service_fmri value='svc:/network/smb/server' />
67da6c28aaSamw	</dependency>
686185db85Sdougm
696185db85Sdougm	<!--
706185db85Sdougm	  The start method will cause each share group to be
716185db85Sdougm	  activated. since these are done in parallel and have been
726185db85Sdougm	  pre-checked for sanity, the shareall equivalent should not
736185db85Sdougm	  take overly long, but be prepared.
746185db85Sdougm	 -->
756185db85Sdougm
766185db85Sdougm	 <exec_method
776185db85Sdougm	    type='method'
786185db85Sdougm	    name='start'
796185db85Sdougm	    exec='/usr/sbin/sharemgr start %i'
806185db85Sdougm	    timeout_seconds='3600' />
816185db85Sdougm
826185db85Sdougm	 <exec_method
836185db85Sdougm	    type='method'
846185db85Sdougm	    name='stop'
856185db85Sdougm	    exec='/usr/sbin/sharemgr stop %i'
866185db85Sdougm	    timeout_seconds='3600' />
876185db85Sdougm
886185db85Sdougm	 <exec_method
896185db85Sdougm	    type='method'
906185db85Sdougm	    name='restart'
916185db85Sdougm	    exec='/usr/sbin/sharemgr start %i'
926185db85Sdougm	    timeout_seconds='3600' />
936185db85Sdougm
946185db85Sdougm	 <exec_method
956185db85Sdougm	    type='method'
966185db85Sdougm	    name='refresh'
976185db85Sdougm	    exec='/usr/sbin/sharemgr start %i'
986185db85Sdougm	    timeout_seconds='3600' />
996185db85Sdougm
1006185db85Sdougm	 <property_group name='general' type='framework'>
1016185db85Sdougm		<!-- to start/stop service -->
1026185db85Sdougm		<propval name='action_authorization' type='astring'
1036185db85Sdougm                        value='solaris.smf.manage.group' />
1046185db85Sdougm		<propval name='value_authorization' type='astring'
1056185db85Sdougm                        value='solaris.smf.manage.group' />
1066185db85Sdougm	 </property_group>
1076185db85Sdougm	<property_group name='startd' type='framework'>
1086185db85Sdougm		<propval name='duration' type='astring'
1096185db85Sdougm			value='transient' />
1106185db85Sdougm	</property_group>
111f345c0beSdougm	<template>
112f345c0beSdougm		<common_name>
113f345c0beSdougm			<loctext xml:lang='C'>
114f345c0beSdougm			Share Group
115f345c0beSdougm			</loctext>
116f345c0beSdougm		</common_name>
117f345c0beSdougm		<documentation>
118*bbf21555SRichard Lowe			<manpage title='sharemgr' section='8'
119f345c0beSdougm				 manpath='/usr/share/man' />
120f345c0beSdougm		</documentation>
121f345c0beSdougm	</template>
1226185db85Sdougm
1236185db85Sdougm</service>
1246185db85Sdougm
1256185db85Sdougm</service_bundle>
126