xref: /titanic_41/usr/src/cmd/sendmail/lib/smtp-sendmail.xml (revision c138f478d2bc94e73ab8f6a084e323bec25e62f5)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License, Version 1.0 only
11 (the "License").  You may not use this file except in compliance
12 with the License.
13
14 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15 or http://www.opensolaris.org/os/licensing.
16 See the License for the specific language governing permissions
17 and limitations under the License.
18
19 When distributing Covered Code, include this CDDL HEADER in each
20 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21 If applicable, add the following below this CDDL HEADER, with the
22 fields enclosed by brackets "[]" replaced with your own identifying
23 information: Portions Copyright [yyyy] [name of copyright owner]
24
25 CDDL HEADER END
26
27	ident	"%Z%%M%	%I%	%E% SMI"
28
29	NOTE:  This service manifest is not editable; its contents will
30	be overwritten by package or patch operations, including
31	operating system upgrade.  Make customizations in a different
32	file.
33-->
34
35<service_bundle type='manifest' name='SUNWsndmr:sendmail'>
36
37<service
38	name='network/smtp'
39	type='service'
40	version='1'>
41
42	<single_instance />
43
44	<dependency
45	    name='fs-local'
46	    grouping='require_all'
47	    restart_on='none'
48	    type='service'>
49		<service_fmri value='svc:/system/filesystem/local' />
50	</dependency>
51
52	<dependency
53	    name='network-service'
54	    grouping='require_all'
55	    restart_on='none'
56	    type='service'>
57		<service_fmri value='svc:/network/service' />
58	</dependency>
59
60	<dependency
61	    name='name-services'
62	    grouping='require_all'
63	    restart_on='refresh'
64	    type='service'>
65		<service_fmri value='svc:/milestone/name-services' />
66	</dependency>
67
68	<dependency
69	    name='identity'
70	    grouping='optional_all'
71	    restart_on='refresh'
72	    type='service'>
73		<service_fmri value='svc:/system/identity:domain' />
74	</dependency>
75
76	<dependency
77	    name='system-log'
78	    grouping='optional_all'
79	    restart_on='none'
80	    type='service'>
81		<service_fmri value='svc:/system/system-log' />
82	</dependency>
83
84	<instance name='sendmail' enabled='false'>
85
86		<dependency
87		    name='config-file'
88		    grouping='require_all'
89		    restart_on='refresh'
90		    type='path'>
91			<service_fmri
92			    value='file://localhost/etc/mail/sendmail.cf' />
93		</dependency>
94
95		<dependency
96		    name='nsswitch'
97		    grouping='require_all'
98		    restart_on='refresh'
99		    type='path'>
100			<service_fmri
101			    value='file://localhost/etc/nsswitch.conf' />
102		</dependency>
103
104		<!--
105		If autofs is enabled, wait for it to get users' home
106		directories.
107		-->
108		<dependency
109		    name='autofs'
110		    grouping='optional_all'
111		    restart_on='none'
112		    type='service'>
113			<service_fmri value='svc:/system/filesystem/autofs' />
114		</dependency>
115
116		<dependent
117			name='smtp-sendmail_multi-user'
118			grouping='optional_all'
119			restart_on='none'>
120				<service_fmri
121				    value='svc:/milestone/multi-user' />
122		</dependent>
123
124		<!--
125		Sendmail is hard-coded to sleep for 60 seconds if it cannot
126		determine the FQHN, so the timeout for start must be longer
127		than that.  For details, see
128		http://www.sendmail.org/vendor/sun/differences.html#3.2
129		-->
130
131		<exec_method
132			type='method'
133			name='start'
134			exec='/lib/svc/method/smtp-sendmail start'
135			timeout_seconds='120' />
136
137		<exec_method
138			type='method'
139			name='stop'
140			exec='/lib/svc/method/smtp-sendmail stop %{restarter/contract}'
141			timeout_seconds='60' />
142
143		<exec_method
144			type='method'
145			name='refresh'
146			exec='/lib/svc/method/smtp-sendmail refresh'
147			timeout_seconds='60' />
148
149		<property_group name='startd' type='framework'>
150			<propval name='ignore_error' type='astring'
151			    value='core,signal' />
152		</property_group>
153
154		<property_group name='general' type='framework'>
155			<propval name='action_authorization' type='astring'
156				value='solaris.smf.manage.sendmail' />
157		</property_group>
158
159		<template>
160			<common_name>
161				<loctext xml:lang='C'>
162				sendmail SMTP mail transfer agent
163				</loctext>
164			</common_name>
165			<documentation>
166				<manpage title='sendmail' section='1M'
167				    manpath='/usr/share/man' />
168			</documentation>
169		</template>
170
171	</instance>
172
173	<stability value='Unstable' />
174
175</service>
176
177</service_bundle>
178