diff options
author | mtm <mtm@FreeBSD.org> | 2004-01-17 10:59:43 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-01-17 10:59:43 +0000 |
commit | 5da6236d0167eab4e233aaf815198eb7d1fe5898 (patch) | |
tree | 6439610462f4b5b56816a33d4ba3c60ab1fe1868 /etc/rc.d/sendmail | |
parent | 7948e91c15e85d387bf8070d18fd9257a7d982be (diff) | |
download | FreeBSD-src-5da6236d0167eab4e233aaf815198eb7d1fe5898.zip FreeBSD-src-5da6236d0167eab4e233aaf815198eb7d1fe5898.tar.gz |
Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, remove
NetBSD specific stuff (which made our scripts more complicated
than necessary).
The NetBSD ident string will be left intact, both for history and
also incase we wish to pull in future versions.
Diffstat (limited to 'etc/rc.d/sendmail')
-rwxr-xr-x | etc/rc.d/sendmail | 72 |
1 files changed, 28 insertions, 44 deletions
diff --git a/etc/rc.d/sendmail b/etc/rc.d/sendmail index e7efd3a..a921267 100755 --- a/etc/rc.d/sendmail +++ b/etc/rc.d/sendmail @@ -18,29 +18,17 @@ name="sendmail" rcvar=`set_rcvar` required_files="/etc/mail/${name}.cf" +command=${sendmail_program:-/usr/sbin/sendmail} +pidfile=${sendmail_pidfile:-/var/run/sendmail.pid} -case ${OSTYPE} in -FreeBSD) - command=${sendmail_program:-/usr/sbin/sendmail} - pidfile=${sendmail_pidfile:-/var/run/sendmail.pid} +load_rc_config $name - load_rc_config $name - - case ${sendmail_enable} in - [Nn][Oo][Nn][Ee]) - sendmail_enable="NO" - sendmail_submit_enable="NO" - sendmail_outbound_enable="NO" - sendmail_msp_queue_enable="NO" - ;; - esac - ;; -NetBSD) - command="/usr/sbin/${name}" - pidfile="/var/run/${name}.pid" - start_precmd="sendmail_precmd" - - load_rc_config $name +case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + sendmail_enable="NO" + sendmail_submit_enable="NO" + sendmail_outbound_enable="NO" + sendmail_msp_queue_enable="NO" ;; esac @@ -83,29 +71,25 @@ sendmail_precmd() run_rc_command "$1" -case ${OSTYPE} in -FreeBSD) - required_files= +required_files= - if ! checkyesno sendmail_enable; then - name="sendmail_submit" - rcvar=`set_rcvar` - start_cmd="${command} ${sendmail_submit_flags}" - run_rc_command "$1" - fi - - if ! checkyesno sendmail_outbound_enable; then - name="sendmail_outbound" - rcvar=`set_rcvar` - start_cmd="${command} ${sendmail_outbound_flags}" - run_rc_command "$1" - fi +if ! checkyesno sendmail_enable; then + name="sendmail_submit" + rcvar=`set_rcvar` + start_cmd="${command} ${sendmail_submit_flags}" + run_rc_command "$1" +fi - name="sendmail_clientmqueue" - rcvar="sendmail_msp_queue_enable" - start_cmd="${command} ${sendmail_msp_queue_flags}" - pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" - required_files="/etc/mail/submit.cf" +if ! checkyesno sendmail_outbound_enable; then + name="sendmail_outbound" + rcvar=`set_rcvar` + start_cmd="${command} ${sendmail_outbound_flags}" run_rc_command "$1" - ;; -esac +fi + +name="sendmail_clientmqueue" +rcvar="sendmail_msp_queue_enable" +start_cmd="${command} ${sendmail_msp_queue_flags}" +pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" +required_files="/etc/mail/submit.cf" +run_rc_command "$1" |