Subject: misc/10243: rc.d/sendmail should not exit if [ -f /etc/sendmail.cf ]
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jbernard@mines.edu>
List: netbsd-bugs
Date: 05/31/2000 08:29:12
>Number: 10243
>Category: misc
>Synopsis: rc.d/sendmail should not exit if [ -f /etc/sendmail.cf ]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed May 31 08:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Jim Bernard
>Release: May 30, 2000
>Organization:
Speaking for myself
>Environment:
System: NetBSD zoo 1.4Y NetBSD 1.4Y (ZOO-$Revision: 1.52 $) #0: Fri May 26 14:58:14 MDT 2000 jim@zoo:/home/tmp/compile/sys/arch/i386/compile/ZOO i386
>Description:
/etc/rc.d/sendmail contains a clause that exits without starting
sendmail if a sendmail.cf file exists in /etc. Since the script
contains an explicit required_files setting specifying the correct
location of the configuration file, the existence of /etc/sendmail.cf
is *not* an error. There's no reason why the script should be nagging
so insistently about either sloppy housekeeping or (more likely)
a deliberate choice to keep either a copy or a link to sendmail.cf
in /etc.
>How-To-Repeat:
Have a link to /etc/mail/sendmail.cf in /etc and watch rc.d/sendmail
refuse to start sendmail at boot time.
>Fix:
Delete the check:
--- sendmail.orig Wed May 17 03:14:07 2000
+++ sendmail Wed May 31 09:20:29 2000
@@ -17,11 +17,6 @@
pidfile="/var/run/${name}.pid"
required_files="/etc/mail/${name}.cf"
load_rc_config $name
-# die if there's pre-8.10 configuration file
-if checkyesno sendmail && [ -f "/etc/${name}.cf" ]; then
- err 1 "${name} was not started, move /etc/${name}.cf to /etc/mail."
-fi
-
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted: