|
1 <?xml version="1.0"?> |
|
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
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 Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved |
|
23 Use is subject to license terms. |
|
24 |
|
25 ident "@(#)stunnel.xml 1.2 08/07/18 SMI" |
|
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 <service_bundle type='manifest' name='SUNWstunnelr:stunnel'> |
|
33 |
|
34 <service |
|
35 name='network/ssl/stunnel' |
|
36 type='service' |
|
37 version='1'> |
|
38 |
|
39 <create_default_instance enabled='false' /> |
|
40 |
|
41 <single_instance /> |
|
42 |
|
43 <!-- Read/Write access required to /var/run for lockfiles --> |
|
44 <dependency |
|
45 name='filesystem' |
|
46 grouping='require_all' |
|
47 restart_on='none' |
|
48 type='service'> |
|
49 <service_fmri |
|
50 value='svc:/system/filesystem/local' |
|
51 /> |
|
52 </dependency> |
|
53 |
|
54 <dependency |
|
55 name='loopback' |
|
56 grouping='require_all' |
|
57 restart_on='none' |
|
58 type='service'> |
|
59 <service_fmri |
|
60 value='svc:/system/filesystem/local' |
|
61 /> |
|
62 </dependency> |
|
63 |
|
64 <dependency |
|
65 name='net-physical' |
|
66 grouping='require_all' |
|
67 restart_on='none' |
|
68 type='service'> |
|
69 <service_fmri |
|
70 value='svc:/network/physical' |
|
71 /> |
|
72 </dependency> |
|
73 |
|
74 <dependency |
|
75 name='cryptosvc' |
|
76 grouping='require_all' |
|
77 restart_on='none' |
|
78 type='service'> |
|
79 <service_fmri |
|
80 value='svc:/system/cryptosvc' |
|
81 /> |
|
82 </dependency> |
|
83 |
|
84 <exec_method |
|
85 type='method' |
|
86 name='start' |
|
87 exec='/usr/bin/stunnel %{config/config_file}' |
|
88 timeout_seconds='60' /> |
|
89 |
|
90 <exec_method |
|
91 type='method' |
|
92 name='stop' |
|
93 exec=':kill' |
|
94 timeout_seconds='60' /> |
|
95 |
|
96 <property_group name='general' type='framework'> |
|
97 <!-- A user with this authorization can: |
|
98 |
|
99 svcadm restart stunnel |
|
100 svcadm disable -t stunnel |
|
101 svcadm mark <state> stunnel |
|
102 svcadm clear stunnel |
|
103 |
|
104 see auths(1) and user_attr(4)--> |
|
105 |
|
106 <propval |
|
107 name='action_authorization' |
|
108 type='astring' |
|
109 value='solaris.smf.manage.stunnel' |
|
110 /> |
|
111 <!-- A user with this authorization can: |
|
112 |
|
113 svcadm disable stunnel |
|
114 svcadm enable stunnel |
|
115 |
|
116 see auths(1) and user_attr(4)--> |
|
117 |
|
118 <propval |
|
119 name='value_authorization' |
|
120 type='astring' |
|
121 value='solaris.smf.value.stunnel' |
|
122 /> |
|
123 </property_group> |
|
124 |
|
125 <!-- The properties defined below can be changed by a user |
|
126 with 'solaris.smf.value.stunnel' authorization using the |
|
127 svccfg(1M) command. |
|
128 |
|
129 e.g. |
|
130 |
|
131 svccfg -s stunnel setprop config/config_file = /myconf/etc/stunnel.conf |
|
132 |
|
133 Now refresh the service: |
|
134 |
|
135 svcadm refresh network/stunnel |
|
136 |
|
137 Note: svcadm disable/enable does not use the new property |
|
138 until after the service has been refreshed. |
|
139 |
|
140 ***Do not edit this manifest to change these properties! --> |
|
141 |
|
142 <property_group name='config' type='application'> |
|
143 <propval |
|
144 name='config_file' |
|
145 type='astring' |
|
146 value='/etc/stunnel/stunnel.conf' |
|
147 /> |
|
148 <propval |
|
149 name='value_authorization' |
|
150 type='astring' |
|
151 value='solaris.smf.value.stunnel' |
|
152 /> |
|
153 </property_group> |
|
154 |
|
155 <!-- default service model of 'contract' --> |
|
156 <property_group name='startd' type='framework'> |
|
157 <propval |
|
158 name='duration' |
|
159 type='astring' |
|
160 value='contract' |
|
161 /> |
|
162 </property_group> |
|
163 |
|
164 <stability value='Unstable' /> |
|
165 |
|
166 <template> |
|
167 <common_name> |
|
168 <loctext xml:lang='C'> |
|
169 stunnel as a daemon |
|
170 </loctext> |
|
171 </common_name> |
|
172 <documentation> |
|
173 <manpage title='stunnel' section='8' |
|
174 manpath='/usr/share/man' /> |
|
175 <doc_link |
|
176 name='stunnel.org website' |
|
177 uri='http://www.stunnel.org' |
|
178 /> |
|
179 </documentation> |
|
180 </template> |
|
181 |
|
182 </service> |
|
183 </service_bundle> |
|
184 |