sendmail (180564) | sendmail (230099) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/sendmail 180564 2008-07-16 19:50:29Z dougb $ | 3# $FreeBSD: head/etc/rc.d/sendmail 230099 2012-01-14 02:18:41Z dougb $ |
4# 5 6# PROVIDE: mail 7# REQUIRE: LOGIN cleanvar 8# we make mail start late, so that things like .forward's are not 9# processed until the system is fully operational 10# KEYWORD: shutdown 11 12# XXX - Get together with sendmail mantainer to figure out how to 13# better handle SENDMAIL_ENABLE and 3rd party MTAs. 14# 15. /etc/rc.subr 16 17name="sendmail" | 4# 5 6# PROVIDE: mail 7# REQUIRE: LOGIN cleanvar 8# we make mail start late, so that things like .forward's are not 9# processed until the system is fully operational 10# KEYWORD: shutdown 11 12# XXX - Get together with sendmail mantainer to figure out how to 13# better handle SENDMAIL_ENABLE and 3rd party MTAs. 14# 15. /etc/rc.subr 16 17name="sendmail" |
18rcvar=`set_rcvar` | 18rcvar="sendmail_enable" |
19required_files="/etc/mail/${name}.cf" 20start_precmd="sendmail_precmd" 21 22load_rc_config $name 23command=${sendmail_program:-/usr/sbin/${name}} 24pidfile=${sendmail_pidfile:-/var/run/${name}.pid} 25procname=${sendmail_procname:-/usr/sbin/${name}} 26 --- 47 unchanged lines hidden (view full) --- 74} 75 76run_rc_command "$1" 77 78required_files= 79 80if checkyesno sendmail_submit_enable; then 81 name="sendmail_submit" | 19required_files="/etc/mail/${name}.cf" 20start_precmd="sendmail_precmd" 21 22load_rc_config $name 23command=${sendmail_program:-/usr/sbin/${name}} 24pidfile=${sendmail_pidfile:-/var/run/${name}.pid} 25procname=${sendmail_procname:-/usr/sbin/${name}} 26 --- 47 unchanged lines hidden (view full) --- 74} 75 76run_rc_command "$1" 77 78required_files= 79 80if checkyesno sendmail_submit_enable; then 81 name="sendmail_submit" |
82 rcvar=`set_rcvar` | 82 rcvar="sendmail_submit_enable" |
83 start_cmd="${command} ${sendmail_submit_flags}" 84 run_rc_command "$1" 85fi 86 87if checkyesno sendmail_outbound_enable; then 88 name="sendmail_outbound" | 83 start_cmd="${command} ${sendmail_submit_flags}" 84 run_rc_command "$1" 85fi 86 87if checkyesno sendmail_outbound_enable; then 88 name="sendmail_outbound" |
89 rcvar=`set_rcvar` | 89 rcvar="sendmail_outbound_enable" |
90 start_cmd="${command} ${sendmail_outbound_flags}" 91 run_rc_command "$1" 92fi 93 94name="sendmail_clientmqueue" 95rcvar="sendmail_msp_queue_enable" 96start_cmd="${command} ${sendmail_msp_queue_flags}" 97pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" 98required_files="/etc/mail/submit.cf" 99run_rc_command "$1" | 90 start_cmd="${command} ${sendmail_outbound_flags}" 91 run_rc_command "$1" 92fi 93 94name="sendmail_clientmqueue" 95rcvar="sendmail_msp_queue_enable" 96start_cmd="${command} ${sendmail_msp_queue_flags}" 97pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" 98required_files="/etc/mail/submit.cf" 99run_rc_command "$1" |