From 21b33a056e6a3b22b66ca4f3ffc62fb8dd21313c Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Mon, 25 May 2009 21:31:24 +0000 Subject: [PATCH] polish comments, no functional change: 1) advertise *.local and next_part near the top of the three scripts 2) daily: mention smtpd(8) mailq behaviour (like for sendmail, postfix, exim) 3) weekly: drop a comment trivially rehashing the next two lines of code documenting next_part in the scripts was suggested by jmc@ ok sthen@ okan@ halex@; "i won't object" ajacoutot@ --- src/etc/daily | 7 +++++-- src/etc/monthly | 5 ++++- src/etc/weekly | 7 ++++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/etc/daily b/src/etc/daily index 438726a0..acbb57da 100644 --- a/src/etc/daily +++ b/src/etc/daily @@ -1,7 +1,10 @@ # -# $OpenBSD: daily,v 1.64 2009/05/24 21:58:06 schwarze Exp $ +# $OpenBSD: daily,v 1.65 2009/05/25 21:31:24 schwarze Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # +# For local additions, create the file /etc/daily.local. +# To get section headers, use the function next_part in daily.local. +# umask 022 PARTOUT=/var/log/daily.part @@ -139,7 +142,7 @@ if [ "X$VERBOSESTATUS" != X0 ]; then fi # The first two regular expressions handle sendmail, the third postfix. -# When the queue is empty, exim -bp keeps silent. +# When the queue is empty, smtpd(8) and exim -bp keep silent. next_part "mail:" mailq | grep -v -e "^/var/spool/mqueue is empty$" \ -e "^[[:blank:]]*Total requests: 0$" \ diff --git a/src/etc/monthly b/src/etc/monthly index 38663498..f2d4e46b 100644 --- a/src/etc/monthly +++ b/src/etc/monthly @@ -1,5 +1,8 @@ # -# $OpenBSD: monthly,v 1.11 2009/05/10 19:27:25 schwarze Exp $ +# $OpenBSD: monthly,v 1.12 2009/05/25 21:31:24 schwarze Exp $ +# +# For local additions, create the file /etc/monthly.local. +# To get section headers, use the function next_part in monthly.local. # umask 022 diff --git a/src/etc/weekly b/src/etc/weekly index 08ed1452..19e51af2 100644 --- a/src/etc/weekly +++ b/src/etc/weekly @@ -1,5 +1,8 @@ # -# $OpenBSD: weekly,v 1.22 2009/05/18 19:57:56 schwarze Exp $ +# $OpenBSD: weekly,v 1.23 2009/05/25 21:31:24 schwarze Exp $ +# +# For local additions, create the file /etc/weekly.local. +# To get section headers, use the function next_part in weekly.local. # umask 022 @@ -63,8 +66,6 @@ fi next_part "Rebuilding whatis databases:" /usr/libexec/makewhatis -# If LOGINACCOUNTING is set to 1 in the environment, report user -# accounting information next_part "Doing login accounting:" [ "X$LOGINACCOUNTING" = X1 ] && { ac -p | sort -nr -k 2