sendmail (151809) | sendmail (170618) |
---|---|
1#!/bin/sh 2# 3# $NetBSD: sendmail,v 1.14 2002/02/12 01:26:36 lukem Exp $ | 1#!/bin/sh 2# 3# $NetBSD: sendmail,v 1.14 2002/02/12 01:26:36 lukem Exp $ |
4# $FreeBSD: head/etc/rc.d/sendmail 151809 2005-10-28 16:55:38Z yar $ | 4# $FreeBSD: head/etc/rc.d/sendmail 170618 2007-06-12 17:33:23Z gshapiro $ |
5# 6 7# PROVIDE: mail 8# REQUIRE: LOGIN cleanvar 9# we make mail start late, so that things like .forward's are not 10# processed until the system is fully operational 11 12# XXX - Get together with sendmail mantainer to figure out how to --- 40 unchanged lines hidden (view full) --- 53 if ! cmp -s "/etc/mail/${name}.cf" "/etc/${name}.cf"; then 54 warn \ 55 "${name} was not started; you have multiple copies of sendmail.cf." 56 return 1 57 fi 58 fi 59 60 # check modifications on /etc/mail/aliases | 5# 6 7# PROVIDE: mail 8# REQUIRE: LOGIN cleanvar 9# we make mail start late, so that things like .forward's are not 10# processed until the system is fully operational 11 12# XXX - Get together with sendmail mantainer to figure out how to --- 40 unchanged lines hidden (view full) --- 53 if ! cmp -s "/etc/mail/${name}.cf" "/etc/${name}.cf"; then 54 warn \ 55 "${name} was not started; you have multiple copies of sendmail.cf." 56 return 1 57 fi 58 fi 59 60 # check modifications on /etc/mail/aliases |
61 if [ -f "/etc/mail/aliases.db" ]; then 62 if [ "/etc/mail/aliases" -nt "/etc/mail/aliases.db" ]; then | 61 if checkyesno sendmail_rebuild_aliases; then 62 if [ -f "/etc/mail/aliases.db" ]; then 63 if [ "/etc/mail/aliases" -nt "/etc/mail/aliases.db" ]; then 64 echo \ 65 "${name}: /etc/mail/aliases newer than /etc/mail/aliases.db, regenerating" 66 /usr/bin/newaliases 67 fi 68 else |
63 echo \ | 69 echo \ |
64 "${name}: /etc/mail/aliases newer than /etc/mail/aliases.db, regenerating" 65 /usr/bin/newaliases | 70 "${name}: /etc/mail/aliases.db not present, generating" 71 /usr/bin/newaliases |
66 fi | 72 fi |
67 else 68 echo \ 69 "${name}: /etc/mail/aliases.db not present, generating" 70 /usr/bin/newaliases | |
71 fi 72} 73 74run_rc_command "$1" 75 76required_files= 77 78if checkyesno sendmail_submit_enable; then --- 19 unchanged lines hidden --- | 73 fi 74} 75 76run_rc_command "$1" 77 78required_files= 79 80if checkyesno sendmail_submit_enable; then --- 19 unchanged lines hidden --- |