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 2009 Sun Microsystems, Inc.  All rights reserved.
24    Use is subject to license terms.
25
26    NOTE:  This service manifest is not editable; its contents will
27    be overwritten by package or patch operations, including
28    operating system upgrade.  Make customizations in a different
29    file.
30-->
31
32<service_bundle type='manifest' name='SUNWsndmr:sendmail'>
33
34<service
35	name='network/sendmail-client'
36	type='service'
37	version='1'>
38
39	<single_instance />
40
41	<dependency
42	    name='fs-local'
43	    grouping='require_all'
44	    restart_on='none'
45	    type='service'>
46		<service_fmri value='svc:/system/filesystem/local' />
47	</dependency>
48
49	<dependency
50	    name='network-service'
51	    grouping='require_all'
52	    restart_on='none'
53	    type='service'>
54		<service_fmri value='svc:/network/service' />
55	</dependency>
56
57	<dependency
58	    name='name-services'
59	    grouping='require_all'
60	    restart_on='refresh'
61	    type='service'>
62		<service_fmri value='svc:/milestone/name-services' />
63	</dependency>
64
65	<dependency
66	    name='identity'
67	    grouping='optional_all'
68	    restart_on='refresh'
69	    type='service'>
70		<service_fmri value='svc:/system/identity:domain' />
71	</dependency>
72
73	<dependency
74	    name='system-log'
75	    grouping='optional_all'
76	    restart_on='none'
77	    type='service'>
78		<service_fmri value='svc:/system/system-log' />
79	</dependency>
80
81	<instance name='default' enabled='true'>
82
83		<dependency
84		    name='config-file'
85		    grouping='require_all'
86		    restart_on='refresh'
87		    type='path'>
88			<service_fmri
89			    value='file://localhost/etc/mail/submit.cf' />
90		</dependency>
91
92		<!--
93		Sendmail is hard-coded to sleep for 60 seconds if it cannot
94		determine the FQHN, so the timeout for start must be longer
95		than that.  For details, see
96		http://www.sendmail.org/vendor/sun/differences.html#3.2
97		-->
98
99		<exec_method
100			type='method'
101			name='start'
102			exec='/lib/svc/method/sendmail-client start'
103			timeout_seconds='120' />
104
105		<exec_method
106			type='method'
107			name='stop'
108			exec='/lib/svc/method/sendmail-client stop %{restarter/contract}'
109			timeout_seconds='60' />
110
111		<exec_method
112			type='method'
113			name='refresh'
114			exec='/lib/svc/method/sendmail-client refresh'
115			timeout_seconds='60' />
116
117		<property_group name='general' type='framework'>
118			<propval name='action_authorization' type='astring'
119				value='solaris.smf.manage.sendmail' />
120		</property_group>
121
122		<property_group name='config' type='application'>
123			<propval name='value_authorization' type='astring'
124				value='solaris.smf.value.sendmail' />
125			<propval name='path_to_submit_mc'
126				type='astring' value='' />
127		</property_group>
128
129		<template>
130			<common_name>
131				<loctext xml:lang='C'>
132				sendmail SMTP client queue runner
133				</loctext>
134			</common_name>
135			<documentation>
136				<manpage title='sendmail' section='1M'
137				    manpath='/usr/share/man' />
138			</documentation>
139		</template>
140
141	</instance>
142
143	<stability value='Unstable' />
144
145</service>
146
147</service_bundle>
148