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 ident "%Z%%M% %I% %E% SMI" 286185db85Sdougm 296185db85Sdougm NOTE: This service manifest is not editable; its contents will 306185db85Sdougm be overwritten by package or patch operations, including 316185db85Sdougm operating system upgrade. Make customizations in a different 326185db85Sdougm file. 336185db85Sdougm 346185db85Sdougm--> 356185db85Sdougm 366185db85Sdougm<service_bundle type='manifest' name='SUNWshmr:group'> 376185db85Sdougm 386185db85Sdougm<service 396185db85Sdougm name='network/shares/group' 406185db85Sdougm type='service' 416185db85Sdougm version='1'> 426185db85Sdougm 436185db85Sdougm <create_default_instance enabled='true' /> 446185db85Sdougm 456185db85Sdougm <!-- Must have all local filesystems mounted before we share them --> 466185db85Sdougm <dependency name='filesystem-local' 476185db85Sdougm grouping='require_all' 486185db85Sdougm restart_on='error' 496185db85Sdougm type='service'> 506185db85Sdougm <service_fmri value='svc:/system/filesystem/local' /> 516185db85Sdougm </dependency> 521cea05afSdougm <!-- Also want to have some form of networking up --> 531cea05afSdougm <dependency name='network' 541cea05afSdougm grouping='require_any' 551cea05afSdougm restart_on='error' 561cea05afSdougm type='service'> 571cea05afSdougm <service_fmri value='svc:/milestone/network' /> 581cea05afSdougm </dependency> 59*da6c28aaSamw <!-- 60*da6c28aaSamw SMB is optional_all so that we don't have to have SMB 61*da6c28aaSamw enabled to work, but if it is, we want to run "after" the 62*da6c28aaSamw smb/service starts. 63*da6c28aaSamw --> 64*da6c28aaSamw <dependency name='smb' 65*da6c28aaSamw grouping='optional_all' 66*da6c28aaSamw restart_on='error' 67*da6c28aaSamw type='service'> 68*da6c28aaSamw <service_fmri value='svc:/network/smb/server' /> 69*da6c28aaSamw </dependency> 706185db85Sdougm 716185db85Sdougm <!-- 726185db85Sdougm The start method will cause each share group to be 736185db85Sdougm activated. since these are done in parallel and have been 746185db85Sdougm pre-checked for sanity, the shareall equivalent should not 756185db85Sdougm take overly long, but be prepared. 766185db85Sdougm --> 776185db85Sdougm 786185db85Sdougm <exec_method 796185db85Sdougm type='method' 806185db85Sdougm name='start' 816185db85Sdougm exec='/usr/sbin/sharemgr start %i' 826185db85Sdougm timeout_seconds='3600' /> 836185db85Sdougm 846185db85Sdougm <exec_method 856185db85Sdougm type='method' 866185db85Sdougm name='stop' 876185db85Sdougm exec='/usr/sbin/sharemgr stop %i' 886185db85Sdougm timeout_seconds='3600' /> 896185db85Sdougm 906185db85Sdougm <exec_method 916185db85Sdougm type='method' 926185db85Sdougm name='restart' 936185db85Sdougm exec='/usr/sbin/sharemgr start %i' 946185db85Sdougm timeout_seconds='3600' /> 956185db85Sdougm 966185db85Sdougm <exec_method 976185db85Sdougm type='method' 986185db85Sdougm name='refresh' 996185db85Sdougm exec='/usr/sbin/sharemgr start %i' 1006185db85Sdougm timeout_seconds='3600' /> 1016185db85Sdougm 1026185db85Sdougm <property_group name='general' type='framework'> 1036185db85Sdougm <!-- to start/stop service --> 1046185db85Sdougm <propval name='action_authorization' type='astring' 1056185db85Sdougm value='solaris.smf.manage.group' /> 1066185db85Sdougm <propval name='value_authorization' type='astring' 1076185db85Sdougm value='solaris.smf.manage.group' /> 1086185db85Sdougm </property_group> 1096185db85Sdougm <property_group name='startd' type='framework'> 1106185db85Sdougm <propval name='duration' type='astring' 1116185db85Sdougm value='transient' /> 1126185db85Sdougm </property_group> 113f345c0beSdougm <template> 114f345c0beSdougm <common_name> 115f345c0beSdougm <loctext xml:lang='C'> 116f345c0beSdougm Share Group 117f345c0beSdougm </loctext> 118f345c0beSdougm </common_name> 119f345c0beSdougm <documentation> 120f345c0beSdougm <manpage title='sharemgr' section='1M' 121f345c0beSdougm manpath='/usr/share/man' /> 122f345c0beSdougm </documentation> 123f345c0beSdougm </template> 1246185db85Sdougm 1256185db85Sdougm</service> 1266185db85Sdougm 1276185db85Sdougm</service_bundle> 128