|
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 |
|
23 Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. |
|
24 |
|
25 NOTE: This service manifest is not editable; its contents will |
|
26 be overwritten by package or patch operations, including |
|
27 operating system upgrade. Make customizations in a different |
|
28 file. |
|
29 --> |
|
30 |
|
31 <service_bundle type='manifest' name='SUNWsndmr:sendmail'> |
|
32 |
|
33 <service |
|
34 name='network/smtp' |
|
35 type='service' |
|
36 version='1'> |
|
37 |
|
38 <single_instance /> |
|
39 |
|
40 <dependency |
|
41 name='fs-local' |
|
42 grouping='require_all' |
|
43 restart_on='none' |
|
44 type='service'> |
|
45 <service_fmri value='svc:/system/filesystem/local' /> |
|
46 </dependency> |
|
47 |
|
48 <dependency |
|
49 name='network-service' |
|
50 grouping='require_all' |
|
51 restart_on='none' |
|
52 type='service'> |
|
53 <service_fmri value='svc:/network/service' /> |
|
54 </dependency> |
|
55 |
|
56 <dependency |
|
57 name='name-services' |
|
58 grouping='require_all' |
|
59 restart_on='refresh' |
|
60 type='service'> |
|
61 <service_fmri value='svc:/milestone/name-services' /> |
|
62 </dependency> |
|
63 |
|
64 <dependency |
|
65 name='identity' |
|
66 grouping='optional_all' |
|
67 restart_on='refresh' |
|
68 type='service'> |
|
69 <service_fmri value='svc:/system/identity:domain' /> |
|
70 </dependency> |
|
71 |
|
72 <dependency |
|
73 name='system-log' |
|
74 grouping='optional_all' |
|
75 restart_on='none' |
|
76 type='service'> |
|
77 <service_fmri value='svc:/system/system-log' /> |
|
78 </dependency> |
|
79 |
|
80 <property_group name='firewall_context' type='com.sun,fw_definition'> |
|
81 <propval name='name' type='astring' value='smtp' /> |
|
82 </property_group> |
|
83 |
|
84 <property_group name='firewall_config' type='com.sun,fw_configuration'> |
|
85 <propval name='policy' type='astring' value='use_global' /> |
|
86 <propval name='apply_to' type='astring' value='' /> |
|
87 <propval name='exceptions' type='astring' value='' /> |
|
88 <propval name='value_authorization' type='astring' |
|
89 value='solaris.smf.value.firewall.config' /> |
|
90 </property_group> |
|
91 |
|
92 <instance name='sendmail' enabled='false'> |
|
93 |
|
94 <dependency |
|
95 name='config-file' |
|
96 grouping='require_all' |
|
97 restart_on='refresh' |
|
98 type='path'> |
|
99 <service_fmri |
|
100 value='file://localhost/etc/mail/sendmail.cf' /> |
|
101 </dependency> |
|
102 |
|
103 <dependency |
|
104 name='nsswitch' |
|
105 grouping='require_all' |
|
106 restart_on='refresh' |
|
107 type='path'> |
|
108 <service_fmri |
|
109 value='file://localhost/etc/nsswitch.conf' /> |
|
110 </dependency> |
|
111 |
|
112 <!-- |
|
113 If autofs is enabled, wait for it to get users' home |
|
114 directories. |
|
115 --> |
|
116 <dependency |
|
117 name='autofs' |
|
118 grouping='optional_all' |
|
119 restart_on='none' |
|
120 type='service'> |
|
121 <service_fmri value='svc:/system/filesystem/autofs' /> |
|
122 </dependency> |
|
123 |
|
124 <dependent |
|
125 name='smtp-sendmail_multi-user' |
|
126 grouping='optional_all' |
|
127 restart_on='none'> |
|
128 <service_fmri |
|
129 value='svc:/milestone/multi-user' /> |
|
130 </dependent> |
|
131 |
|
132 <!-- |
|
133 Sendmail is hard-coded to sleep for 60 seconds if it cannot |
|
134 determine the FQHN, so the timeout for start must be longer |
|
135 than that. For details, see |
|
136 http://www.sendmail.org/vendor/sun/differences.html#3.2 |
|
137 --> |
|
138 |
|
139 <exec_method |
|
140 type='method' |
|
141 name='start' |
|
142 exec='/lib/svc/method/smtp-sendmail start' |
|
143 timeout_seconds='120' /> |
|
144 |
|
145 <exec_method |
|
146 type='method' |
|
147 name='stop' |
|
148 exec='/lib/svc/method/smtp-sendmail stop %{restarter/contract}' |
|
149 timeout_seconds='60' /> |
|
150 |
|
151 <exec_method |
|
152 type='method' |
|
153 name='refresh' |
|
154 exec='/lib/svc/method/smtp-sendmail refresh' |
|
155 timeout_seconds='60' /> |
|
156 |
|
157 <property_group name='startd' type='framework'> |
|
158 <propval name='ignore_error' type='astring' |
|
159 value='core,signal' /> |
|
160 </property_group> |
|
161 |
|
162 <property_group name='general' type='framework'> |
|
163 <propval name='action_authorization' type='astring' |
|
164 value='solaris.smf.manage.sendmail' /> |
|
165 </property_group> |
|
166 |
|
167 <property_group name='config' type='application'> |
|
168 <propval name='db_version' |
|
169 type='integer' value='2' /> |
|
170 <propval name='include_info' |
|
171 type='boolean' value='false' /> |
|
172 <propval name='local_only' |
|
173 type='boolean' value='true' /> |
|
174 <propval name='path_to_sendmail_mc' |
|
175 type='astring' value='' /> |
|
176 <propval name='value_authorization' type='astring' |
|
177 value='solaris.smf.value.sendmail' /> |
|
178 </property_group> |
|
179 |
|
180 <template> |
|
181 <common_name> |
|
182 <loctext xml:lang='C'> |
|
183 sendmail SMTP mail transfer agent |
|
184 </loctext> |
|
185 </common_name> |
|
186 <documentation> |
|
187 <manpage title='sendmail' section='1M' |
|
188 manpath='/usr/share/man' /> |
|
189 </documentation> |
|
190 <pg_pattern name='config' type='application'> |
|
191 <description> |
|
192 <loctext xml:lang='C'> |
|
193 Configuration properties |
|
194 </loctext> |
|
195 </description> |
|
196 <prop_pattern name='db_version' type='integer'> |
|
197 <description> |
|
198 <loctext xml:lang='C'> |
|
199 Version of Berkeley DB used to store aliases and keyed maps |
|
200 </loctext> |
|
201 </description> |
|
202 <cardinality min="1" max="1"/> |
|
203 <constraints> |
|
204 <range min='2' max='5'/> |
|
205 </constraints> |
|
206 </prop_pattern> |
|
207 <prop_pattern name='include_info' type='boolean'> |
|
208 <description> |
|
209 <loctext xml:lang='C'> |
|
210 Whether or not to include information (who, when, where) built sendmail.cf |
|
211 </loctext> |
|
212 </description> |
|
213 </prop_pattern> |
|
214 <prop_pattern name='local_only' type='boolean'> |
|
215 <description> |
|
216 <loctext xml:lang='C'> |
|
217 Whether or not to accept SMTP connections from localhost only |
|
218 </loctext> |
|
219 </description> |
|
220 </prop_pattern> |
|
221 <prop_pattern name='path_to_sendmail_mc' type='astring'> |
|
222 <description> |
|
223 <loctext xml:lang='C'> |
|
224 Path to .mc file from which sendmail.cf is built |
|
225 </loctext> |
|
226 </description> |
|
227 </prop_pattern> |
|
228 <prop_pattern name='value_authorization' type='astring'> |
|
229 <description> |
|
230 <loctext xml:lang='C'> |
|
231 Declares authorization needed to change values in the config property group. |
|
232 </loctext> |
|
233 </description> |
|
234 </prop_pattern> |
|
235 </pg_pattern> |
|
236 </template> |
|
237 |
|
238 </instance> |
|
239 |
|
240 <stability value='Unstable' /> |
|
241 |
|
242 </service> |
|
243 |
|
244 </service_bundle> |