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