author | John Beck <John.Beck@Oracle.COM> |
Tue, 21 Apr 2015 15:58:45 -0700 | |
branch | s11-update |
changeset 4175 | a6869c2101fe |
parent 4174 | 8faf7a4cc4e7 |
permissions | -rw-r--r-- |
4174 | 1 |
<?xml version="1.0"?> |
2 |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
3 |
<!-- |
|
4175
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
4 |
CDDL HEADER START |
4174 | 5 |
|
4175
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
6 |
The contents of this file are subject to the terms of the |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
7 |
Common Development and Distribution License (the "License"). |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
8 |
You may not use this file except in compliance with the License. |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
9 |
|
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
10 |
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
11 |
or http://www.opensolaris.org/os/licensing. |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
12 |
See the License for the specific language governing permissions |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
13 |
and limitations under the License. |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
14 |
|
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
15 |
When distributing Covered Code, include this CDDL HEADER in each |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
16 |
file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
17 |
If applicable, add the following below this CDDL HEADER, with the |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
18 |
fields enclosed by brackets "[]" replaced with your own identifying |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
19 |
information: Portions Copyright [yyyy] [name of copyright owner] |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
20 |
|
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
21 |
CDDL HEADER END |
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
22 |
|
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
23 |
Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved. |
4174 | 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='service/network/smtp/postfix:postfix'> |
|
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='postfix' 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/postfix/main.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-postfix_multi-user' |
|
126 |
grouping='optional_all' |
|
127 |
restart_on='none'> |
|
128 |
<service_fmri |
|
129 |
value='svc:/milestone/multi-user' /> |
|
130 |
</dependent> |
|
131 |
||
132 |
<exec_method |
|
133 |
type='method' |
|
134 |
name='start' |
|
135 |
exec='/lib/svc/method/postfix' |
|
136 |
timeout_seconds='120'> |
|
137 |
<method_context> |
|
138 |
<method_credential user='root' group='postfix' |
|
4175
a6869c2101fe
20918093 postfix manifests & start method need tweaks
John Beck <John.Beck@Oracle.COM>
parents:
4174
diff
changeset
|
139 |
privileges='basic,net_privaddr,proc_setid,file_dac_read,file_dac_search'/> |
4174 | 140 |
</method_context> |
141 |
</exec_method> |
|
142 |
||
143 |
<exec_method |
|
144 |
type='method' |
|
145 |
name='stop' |
|
146 |
exec='/usr/sbin/postfix stop' |
|
147 |
timeout_seconds='60' /> |
|
148 |
||
149 |
<exec_method |
|
150 |
type='method' |
|
151 |
name='refresh' |
|
152 |
exec='/usr/sbin/postfix reload' |
|
153 |
timeout_seconds='60' /> |
|
154 |
||
155 |
<property_group name='startd' type='framework'> |
|
156 |
<propval name='ignore_error' type='astring' |
|
157 |
value='core,signal' /> |
|
158 |
</property_group> |
|
159 |
||
160 |
<property_group name='general' type='framework'> |
|
161 |
<propval name='action_authorization' type='astring' |
|
162 |
value='solaris.smf.manage.postfix' /> |
|
163 |
</property_group> |
|
164 |
||
165 |
<property_group name='config' type='application'> |
|
166 |
<propval name='automatic' type='boolean' value='true' /> |
|
167 |
</property_group> |
|
168 |
||
169 |
<template> |
|
170 |
<common_name> |
|
171 |
<loctext xml:lang='C'> |
|
172 |
postfix SMTP mail transfer agent |
|
173 |
</loctext> |
|
174 |
</common_name> |
|
175 |
<documentation> |
|
176 |
<manpage title='postfix' section='1' |
|
177 |
manpath='/usr/share/man' /> |
|
178 |
</documentation> |
|
179 |
<pg_pattern name='config' type='application'> |
|
180 |
<description> |
|
181 |
<loctext xml:lang='C'> |
|
182 |
Configuration properties |
|
183 |
</loctext> |
|
184 |
</description> |
|
185 |
<prop_pattern name='value_authorization' type='astring'> |
|
186 |
<description> |
|
187 |
<loctext xml:lang='C'> |
|
188 |
Declares authorization needed to change values in the config property group. |
|
189 |
</loctext> |
|
190 |
</description> |
|
191 |
</prop_pattern> |
|
192 |
</pg_pattern> |
|
193 |
</template> |
|
194 |
||
195 |
</instance> |
|
196 |
||
197 |
<stability value='Unstable' /> |
|
198 |
||
199 |
</service> |
|
200 |
||
201 |
</service_bundle> |