Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d do not cope with pre-8.10 configuration file. do n...



details:   https://anonhg.NetBSD.org/src/rev/598b0d900a70
branches:  trunk
changeset: 485705:598b0d900a70
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed May 03 17:03:10 2000 +0000

description:
do not cope with pre-8.10 configuration file.  do not start sendmail.
From: hubert

diffstat:

 etc/rc.d/sendmail |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (29 lines):

diff -r e431d267d531 -r 598b0d900a70 etc/rc.d/sendmail
--- a/etc/rc.d/sendmail Wed May 03 15:15:50 2000 +0000
+++ b/etc/rc.d/sendmail Wed May 03 17:03:10 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: sendmail,v 1.3 2000/05/03 10:55:20 itojun Exp $
+# $NetBSD: sendmail,v 1.4 2000/05/03 17:03:10 itojun Exp $
 #
 
 # PROVIDE: mail
@@ -16,13 +16,11 @@
 name="sendmail"
 command="/usr/sbin/${name}"
 pidfile="/var/run/${name}.pid"
+required_files="/etc/mail/${name}.cf"
+
+# die if there's pre-8.10 configuration file
 if [ -f "/etc/${name}.cf" ]; then
-       required_files="/etc/${name}.cf"
-       command_args="-C${required_files}"
-       warn "using ${required_files}."
-       warn "default location was changed, move ${required_files} to /etc/mail."
-else
-       required_files="/etc/mail/${name}.cf"
+       err 1 "${name} was not started, move /etc/${name}.cf to /etc/mail."
 fi
 
 run_rc_command "$1"



Home | Main Index | Thread Index | Old Index