p7zip: assorted fixes
[oi-userland.git] / components / network / proftpd / proftpd.xml
blob2f3bb8c4672f43c97d814606aff9990f174252ad
1 <?xml version="1.0"?>
2 <!--
3  Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
5  CDDL HEADER START
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.
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.
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]
22  CDDL HEADER END
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 -->
30 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
32 <service_bundle type='manifest' name='network/proftpd'>
33 <service name='network/proftpd' type='service' version='1'>
34         <create_default_instance enabled='false' />
36         <single_instance/>
38         <dependency name='net-service' grouping='require_all'
39                         restart_on='none' type='service'>
40                 <service_fmri value='svc:/network/service'/>
41         </dependency>
43         <dependency name='network' grouping='require_all'
44                         restart_on='none' type='service'>
45                 <service_fmri value='svc:/milestone/network'/>
46         </dependency>
48         <dependency name='filesystem-local' grouping='require_all'
49                         restart_on='none' type='service'>
50                 <service_fmri value='svc:/system/filesystem/local' />
51         </dependency>
53         <dependency name='name-services' grouping='require_all'
54                         restart_on='none' type='service'>
55                 <service_fmri value='svc:/milestone/name-services' />
56         </dependency>
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>
68         <exec_method type='method'
69                 name='stop'
70                 exec=':kill'
71                 timeout_seconds='60'>
72         </exec_method>
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>
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>
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>
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>
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>
117 </service_bundle>