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