|
1 <?xml version="1.0"?> |
|
2 <!-- |
|
3 Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
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 NOTE: This service manifest is not editable; its contents will |
|
25 be overwritten by package or patch operations, including |
|
26 operating system upgrade. Make customizations in a different |
|
27 file. |
|
28 --> |
|
29 |
|
30 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
31 |
|
32 <service_bundle type='manifest' name='network/ftp'> |
|
33 <service name='network/ftp' type='service' version='1'> |
|
34 <create_default_instance enabled='false' /> |
|
35 |
|
36 <single_instance/> |
|
37 |
|
38 <dependency name='net-loopback' grouping='require_any' |
|
39 restart_on='none' type='service'> |
|
40 <service_fmri value='svc:/network/loopback' /> |
|
41 </dependency> |
|
42 |
|
43 <dependency name='net-service' grouping='require_all' |
|
44 restart_on='none' type='service'> |
|
45 <service_fmri value='svc:/network/service'/> |
|
46 </dependency> |
|
47 |
|
48 <dependency name='net-physical' grouping='require_all' |
|
49 restart_on='none' type='service'> |
|
50 <service_fmri value='svc:/network/physical' /> |
|
51 </dependency> |
|
52 |
|
53 <dependency name='filesystem-local' grouping='require_all' |
|
54 restart_on='none' type='service'> |
|
55 <service_fmri value='svc:/system/filesystem/local' /> |
|
56 </dependency> |
|
57 |
|
58 <exec_method |
|
59 type='method' |
|
60 name='start' |
|
61 exec='/usr/lib/inet/proftpd' |
|
62 timeout_seconds='60'> |
|
63 <method_context> |
|
64 <method_credential user='root' group='root' /> |
|
65 </method_context> |
|
66 </exec_method> |
|
67 |
|
68 <exec_method type='method' |
|
69 name='stop' |
|
70 exec=':kill' |
|
71 timeout_seconds='60'> |
|
72 </exec_method> |
|
73 |
|
74 <property_group name='general' type='framework'> |
|
75 <!-- manage FTP server state --> |
|
76 <propval name='action_authorization' type='astring' |
|
77 value='solaris.smf.manage.ftp' /> |
|
78 <propval name='value_authorization' type='astring' |
|
79 value='solaris.smf.manage.ftp' /> |
|
80 </property_group> |
|
81 |
|
82 <property_group name='startd' type='framework'> |
|
83 <propval name='duration' type='astring' value='contract'/> |
|
84 <!-- sub-process core dumps shouldn't restart session --> |
|
85 <propval name='ignore_error' |
|
86 type='astring' value='core,signal' /> |
|
87 </property_group> |
|
88 |
|
89 <property_group name='firewall_context' type='com.sun,fw_definition'> |
|
90 <propval name='ipf_method' type='astring' |
|
91 value='/lib/svc/method/svc-ftp ipfilter' /> |
|
92 </property_group> |
|
93 |
|
94 <property_group name='firewall_config' type='com.sun,fw_configuration'> |
|
95 <propval name='policy' type='astring' value='use_global' /> |
|
96 <propval name='apply_to' type='astring' value='' /> |
|
97 <propval name='exceptions' type='astring' value='' /> |
|
98 <propval name='value_authorization' type='astring' |
|
99 value='solaris.smf.value.firewall.config' /> |
|
100 </property_group> |
|
101 |
|
102 <template> |
|
103 <common_name> |
|
104 <loctext xml:lang='C'> |
|
105 FTP server |
|
106 </loctext> |
|
107 </common_name> |
|
108 <documentation> |
|
109 <manpage title='proftpd' section='1M' |
|
110 manpath='/usr/share/man' /> |
|
111 <doc_link name='proftpd' |
|
112 uri='file://usr/share/doc/proftpd/' /> |
|
113 </documentation> |
|
114 </template> |
|
115 </service> |
|
116 |
|
117 </service_bundle> |