|
1 <?xml version="1.0"?> |
|
2 <!-- |
|
3 # |
|
4 # CDDL HEADER START |
|
5 # |
|
6 # The contents of this file are subject to the terms of the |
|
7 # Common Development and Distribution License (the "License"). |
|
8 # You may not use this file except in compliance with the License. |
|
9 # |
|
10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
11 # or http://www.opensolaris.org/os/licensing. |
|
12 # See the License for the specific language governing permissions |
|
13 # and limitations under the License. |
|
14 # |
|
15 # When distributing Covered Code, include this CDDL HEADER in each |
|
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
17 # If applicable, add the following below this CDDL HEADER, with the |
|
18 # fields enclosed by brackets "[]" replaced with your own identifying |
|
19 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
20 # |
|
21 # CDDL HEADER END |
|
22 # |
|
23 --> |
|
24 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
25 <!-- |
|
26 Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. |
|
27 |
|
28 NOTE: This service manifest is not editable; its contents will |
|
29 be overwritten by package or patch operations, including |
|
30 operating system upgrade. Make customizations in a different |
|
31 file. |
|
32 --> |
|
33 |
|
34 <service_bundle type='manifest' name='SUNWsmbar:samba'> |
|
35 |
|
36 <service name='network/samba' type='service' version='1'> |
|
37 |
|
38 <create_default_instance enabled='false' /> |
|
39 |
|
40 <single_instance/> |
|
41 |
|
42 <dependency name='net-loopback' grouping='require_any' |
|
43 restart_on='none' type='service'> |
|
44 <service_fmri value='svc:/network/loopback' /> |
|
45 </dependency> |
|
46 |
|
47 <dependency name='net-service' grouping='require_all' |
|
48 restart_on='none' type='service'> |
|
49 <service_fmri value='svc:/network/service'/> |
|
50 </dependency> |
|
51 |
|
52 <dependency name='net-physical' grouping='require_all' |
|
53 restart_on='none' type='service'> |
|
54 <service_fmri value='svc:/network/physical' /> |
|
55 </dependency> |
|
56 |
|
57 <dependency name='filesystem-local' grouping='require_all' |
|
58 restart_on='none' type='service'> |
|
59 <service_fmri value='svc:/system/filesystem/local' /> |
|
60 </dependency> |
|
61 |
|
62 <dependent name='samba_multi-user-server' grouping='optional_all' |
|
63 restart_on='none'> |
|
64 <service_fmri value='svc:/milestone/multi-user-server' /> |
|
65 </dependent> |
|
66 |
|
67 <exec_method type='method' name='start' |
|
68 exec='/usr/sbin/smbd -D' |
|
69 timeout_seconds='170' /> |
|
70 |
|
71 <exec_method type='method' name='stop' |
|
72 exec='/usr/bin/kill `cat /var/samba/locks/smbd.pid`' |
|
73 timeout_seconds='60' /> |
|
74 |
|
75 <stability value='Unstable' /> |
|
76 |
|
77 <template> |
|
78 <common_name> |
|
79 <loctext xml:lang='C'> |
|
80 SMB file server |
|
81 </loctext> |
|
82 </common_name> |
|
83 <documentation> |
|
84 <manpage title='smbsmbd' section='1m' |
|
85 manpath='/usr/share/man' /> |
|
86 <manpage title='smb.conf' section='4' |
|
87 manpath='/usr/share/man' /> |
|
88 </documentation> |
|
89 </template> |
|
90 </service> |
|
91 |
|
92 </service_bundle> |