Browse Source

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@
OPENBSD_4_6
schwarze 15 years ago
parent
commit
21b33a056e
3 changed files with 13 additions and 6 deletions
  1. +5
    -2
      src/etc/daily
  2. +4
    -1
      src/etc/monthly
  3. +4
    -3
      src/etc/weekly

+ 5
- 2
src/etc/daily View File

@ -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$" \


+ 4
- 1
src/etc/monthly View File

@ -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


+ 4
- 3
src/etc/weekly View File

@ -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


Loading…
Cancel
Save