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 NOTE: This service manifest is not editable; its contents will 28 be overwritten by package or patch operations, including 29 operating system upgrade. Make customizations in a different 30 file. 31 32--> 33 34<service_bundle type='manifest' name='SUNWshmr:group'> 35 36<service 37 name='network/shares/group' 38 type='service' 39 version='1'> 40 41 <create_default_instance enabled='true' /> 42 43 <!-- Must have all local filesystems mounted before we share them --> 44 <dependency name='filesystem-local' 45 grouping='require_all' 46 restart_on='error' 47 type='service'> 48 <service_fmri value='svc:/system/filesystem/local' /> 49 </dependency> 50 <!-- Also want to have some form of networking up --> 51 <dependency name='network' 52 grouping='require_any' 53 restart_on='error' 54 type='service'> 55 <service_fmri value='svc:/milestone/network' /> 56 </dependency> 57 <!-- 58 SMB is optional_all so that we don't have to have SMB 59 enabled to work, but if it is, we want to run "after" the 60 smb/service starts. 61 --> 62 <dependency name='smb' 63 grouping='optional_all' 64 restart_on='error' 65 type='service'> 66 <service_fmri value='svc:/network/smb/server' /> 67 </dependency> 68 69 <!-- 70 The start method will cause each share group to be 71 activated. since these are done in parallel and have been 72 pre-checked for sanity, the shareall equivalent should not 73 take overly long, but be prepared. 74 --> 75 76 <exec_method 77 type='method' 78 name='start' 79 exec='/usr/sbin/sharemgr start %i' 80 timeout_seconds='3600' /> 81 82 <exec_method 83 type='method' 84 name='stop' 85 exec='/usr/sbin/sharemgr stop %i' 86 timeout_seconds='3600' /> 87 88 <exec_method 89 type='method' 90 name='restart' 91 exec='/usr/sbin/sharemgr start %i' 92 timeout_seconds='3600' /> 93 94 <exec_method 95 type='method' 96 name='refresh' 97 exec='/usr/sbin/sharemgr start %i' 98 timeout_seconds='3600' /> 99 100 <property_group name='general' type='framework'> 101 <!-- to start/stop service --> 102 <propval name='action_authorization' type='astring' 103 value='solaris.smf.manage.group' /> 104 <propval name='value_authorization' type='astring' 105 value='solaris.smf.manage.group' /> 106 </property_group> 107 <property_group name='startd' type='framework'> 108 <propval name='duration' type='astring' 109 value='transient' /> 110 </property_group> 111 <template> 112 <common_name> 113 <loctext xml:lang='C'> 114 Share Group 115 </loctext> 116 </common_name> 117 <documentation> 118 <manpage title='sharemgr' section='8' 119 manpath='/usr/share/man' /> 120 </documentation> 121 </template> 122 123</service> 124 125</service_bundle> 126