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