xref: /titanic_50/usr/src/cmd/sendmail/lib/smtp-sendmail.xml (revision e07d9cb85217949d497b02d7211de8a197d2f2eb)
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 2006 Sun Microsystems, Inc.  All rights reserved.
24    Use is subject to license terms.
25
26    ident	"%Z%%M%	%I%	%E% SMI"
27
28    NOTE:  This service manifest is not editable; its contents will
29    be overwritten by package or patch operations, including
30    operating system upgrade.  Make customizations in a different
31    file.
32-->
33
34<service_bundle type='manifest' name='SUNWsndmr:sendmail'>
35
36<service
37	name='network/smtp'
38	type='service'
39	version='1'>
40
41	<single_instance />
42
43	<dependency
44	    name='fs-local'
45	    grouping='require_all'
46	    restart_on='none'
47	    type='service'>
48		<service_fmri value='svc:/system/filesystem/local' />
49	</dependency>
50
51	<dependency
52	    name='network-service'
53	    grouping='require_all'
54	    restart_on='none'
55	    type='service'>
56		<service_fmri value='svc:/network/service' />
57	</dependency>
58
59	<dependency
60	    name='name-services'
61	    grouping='require_all'
62	    restart_on='refresh'
63	    type='service'>
64		<service_fmri value='svc:/milestone/name-services' />
65	</dependency>
66
67	<dependency
68	    name='identity'
69	    grouping='optional_all'
70	    restart_on='refresh'
71	    type='service'>
72		<service_fmri value='svc:/system/identity:domain' />
73	</dependency>
74
75	<dependency
76	    name='system-log'
77	    grouping='optional_all'
78	    restart_on='none'
79	    type='service'>
80		<service_fmri value='svc:/system/system-log' />
81	</dependency>
82
83	<instance name='sendmail' enabled='false'>
84
85		<dependency
86		    name='config-file'
87		    grouping='require_all'
88		    restart_on='refresh'
89		    type='path'>
90			<service_fmri
91			    value='file://localhost/etc/mail/sendmail.cf' />
92		</dependency>
93
94		<dependency
95		    name='nsswitch'
96		    grouping='require_all'
97		    restart_on='refresh'
98		    type='path'>
99			<service_fmri
100			    value='file://localhost/etc/nsswitch.conf' />
101		</dependency>
102
103		<!--
104		If autofs is enabled, wait for it to get users' home
105		directories.
106		-->
107		<dependency
108		    name='autofs'
109		    grouping='optional_all'
110		    restart_on='none'
111		    type='service'>
112			<service_fmri value='svc:/system/filesystem/autofs' />
113		</dependency>
114
115		<dependent
116			name='smtp-sendmail_multi-user'
117			grouping='optional_all'
118			restart_on='none'>
119				<service_fmri
120				    value='svc:/milestone/multi-user' />
121		</dependent>
122
123		<!--
124		Sendmail is hard-coded to sleep for 60 seconds if it cannot
125		determine the FQHN, so the timeout for start must be longer
126		than that.  For details, see
127		http://www.sendmail.org/vendor/sun/differences.html#3.2
128		-->
129
130		<exec_method
131			type='method'
132			name='start'
133			exec='/lib/svc/method/smtp-sendmail start'
134			timeout_seconds='120' />
135
136		<exec_method
137			type='method'
138			name='stop'
139			exec='/lib/svc/method/smtp-sendmail stop %{restarter/contract}'
140			timeout_seconds='60' />
141
142		<exec_method
143			type='method'
144			name='refresh'
145			exec='/lib/svc/method/smtp-sendmail refresh'
146			timeout_seconds='60' />
147
148		<property_group name='startd' type='framework'>
149			<propval name='ignore_error' type='astring'
150			    value='core,signal' />
151		</property_group>
152
153		<property_group name='general' type='framework'>
154			<propval name='action_authorization' type='astring'
155				value='solaris.smf.manage.sendmail' />
156		</property_group>
157
158		<property_group name='config' type='application'>
159			<propval
160				name='local_only'
161				type='boolean'
162				value='false' />
163			<propval name='value_authorization' type='astring'
164				value='solaris.smf.value.sendmail' />
165		</property_group>
166
167		<template>
168			<common_name>
169				<loctext xml:lang='C'>
170				sendmail SMTP mail transfer agent
171				</loctext>
172			</common_name>
173			<documentation>
174				<manpage title='sendmail' section='1M'
175				    manpath='/usr/share/man' />
176			</documentation>
177		</template>
178
179	</instance>
180
181	<stability value='Unstable' />
182
183</service>
184
185</service_bundle>
186