From 852ef3de6f35aed702dae05f5ba4bcd1843f1a63 Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 12 Feb 2002 01:26:36 +0000 Subject: [PATCH] improve comment, and clean up a test --- etc/rc.d/sendmail | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/etc/rc.d/sendmail b/etc/rc.d/sendmail index 2197e970a7f4..591fa3526432 100755 --- a/etc/rc.d/sendmail +++ b/etc/rc.d/sendmail @@ -1,14 +1,12 @@ #!/bin/sh # -# $NetBSD: sendmail,v 1.13 2000/12/18 07:56:41 jmc Exp $ +# $NetBSD: sendmail,v 1.14 2002/02/12 01:26:36 lukem Exp $ # # PROVIDE: mail # REQUIRE: LOGIN - -# we could do this, but make mail start late, so that things like -# .forward's are not processed until the system is fully operational -## REQUIRE: DAEMON +# we make mail start late, so that things like .forward's are not +# processed until the system is fully operational . /etc/rc.subr @@ -47,8 +45,8 @@ sendmail_precmd() # check couple of common db files, too for f in genericstable virtusertable domaintable mailertable; do - if [ -r "/etc/mail/$f" ] && [ "/etc/mail/$f" -nt "/etc/mail/$f.db" ]; - then + if [ -r "/etc/mail/$f" -a \ + "/etc/mail/$f" -nt "/etc/mail/$f.db" ]; then echo \ "${name}: /etc/mail/$f newer than /etc/mail/$f.db, regenerating" /usr/sbin/makemap hash /etc/mail/$f < /etc/mail/$f