Source-Changes-HG archive

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

[src/trunk]: src - Make /etc/daily run /etc/daily.local if it exists. Make si...



details:   https://anonhg.NetBSD.org/src/rev/29ad5939de0b
branches:  trunk
changeset: 480389:29ad5939de0b
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Jan 10 17:03:49 2000 +0000

description:
- Make /etc/daily run /etc/daily.local if it exists. Make similar change for
  weekly and monthly scripts.
- Update FILES section in manpages.

diffstat:

 etc/daily                     |   8 +++++++-
 etc/monthly                   |   9 ++++++---
 etc/weekly                    |   8 +++++++-
 share/man/man5/daily.conf.5   |  11 +++++++++--
 share/man/man5/monthly.conf.5 |  10 ++++++++--
 share/man/man5/weekly.conf.5  |  10 ++++++++--
 6 files changed, 45 insertions(+), 11 deletions(-)

diffs (141 lines):

diff -r d8a603396ac7 -r 29ad5939de0b etc/daily
--- a/etc/daily Mon Jan 10 16:58:38 2000 +0000
+++ b/etc/daily Mon Jan 10 17:03:49 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: daily,v 1.30 2000/01/07 03:52:23 enami Exp $
+#      $NetBSD: daily,v 1.31 2000/01/10 17:03:49 ad Exp $
 #      @(#)daily       8.2 (Berkeley) 1/25/94
 #
 
@@ -221,4 +221,10 @@
        mail -s "$host daily insecurity output for $date" $MAILTO < $SECOUT
 fi
 
+if [ -f /etc/daily.local ]; then
+       echo ""
+       echo "Running /etc/daily.local:"
+       . /etc/daily.local
+fi
+
 rm -rf $TMPDIR
diff -r d8a603396ac7 -r 29ad5939de0b etc/monthly
--- a/etc/monthly       Mon Jan 10 16:58:38 2000 +0000
+++ b/etc/monthly       Mon Jan 10 17:03:49 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: monthly,v 1.7 1998/09/15 05:06:31 lukem Exp $
+#      $NetBSD: monthly,v 1.8 2000/01/10 17:03:49 ad Exp $
 #      from: @(#)monthly       8.1 (Berkeley) 6/9/93
 #
 
@@ -22,5 +22,8 @@
 # echo "Doing login accounting:"
 # ac -p | sort -nr +1
 
-echo "Nothing to do!"
-#echo "."
+if [ -f /etc/monthly.local ]; then
+       echo ""
+       echo "Running /etc/monthly.local:"
+       . /etc/monthly.local
+fi
diff -r d8a603396ac7 -r 29ad5939de0b etc/weekly
--- a/etc/weekly        Mon Jan 10 16:58:38 2000 +0000
+++ b/etc/weekly        Mon Jan 10 17:03:49 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: weekly,v 1.13 1999/04/23 08:20:28 kleink Exp $
+#      $NetBSD: weekly,v 1.14 2000/01/10 17:03:49 ad Exp $
 #      from: @(#)weekly        8.2 (Berkeley) 1/2/94
 #
 
@@ -71,3 +71,9 @@
 else
        echo "Not rebuilding locate database; no /var/db/locate.database"
 fi
+
+if [ -f /etc/weekly.local ]; then
+       echo ""
+       echo "Running /etc/weekly.local:"
+       . /etc/weekly.local
+fi
diff -r d8a603396ac7 -r 29ad5939de0b share/man/man5/daily.conf.5
--- a/share/man/man5/daily.conf.5       Mon Jan 10 16:58:38 2000 +0000
+++ b/share/man/man5/daily.conf.5       Mon Jan 10 17:03:49 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: daily.conf.5,v 1.4 1999/03/17 20:19:44 garbled Exp $
+.\"    $NetBSD: daily.conf.5,v 1.5 2000/01/10 17:03:49 ad Exp $
 .\"
 .\" Copyright (c) 1996 Matthew R. Green
 .\" All rights reserved.
@@ -104,8 +104,15 @@
 .El
 .Pp
 .Sh FILES
+.Bl -tag -width /etc/daily.local -compact
+.It Pa /etc/daily
+daily maintenance script
+.It Pa /etc/daily.conf
+daily maintenance configuration
+.It Pa /etc/daily.local
+local site additions to
 .Pa /etc/daily
-.Pa /etc/daily.conf
+.El
 .Sh SEE ALSO
 .Xr weekly.conf 5 ,
 .Xr monthly.conf 5 ,
diff -r d8a603396ac7 -r 29ad5939de0b share/man/man5/monthly.conf.5
--- a/share/man/man5/monthly.conf.5     Mon Jan 10 16:58:38 2000 +0000
+++ b/share/man/man5/monthly.conf.5     Mon Jan 10 17:03:49 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: monthly.conf.5,v 1.4 1999/03/17 20:19:47 garbled Exp $
+.\"    $NetBSD: monthly.conf.5,v 1.5 2000/01/10 17:03:49 ad Exp $
 .\"
 .\" Copyright (c) 1996 Matthew R. Green
 .\" All rights reserved.
@@ -46,8 +46,14 @@
 There are currently no monthly tasks.
 .Pp
 .Sh FILES
+.Bl -tag -width /etc/monthly.local -compact
+.It Pa /etc/monthly
+monthly maintenance script
+.It Pa /etc/monthly.conf
+monthly maintenance configuration
+.It Pa /etc/monthly.local
+local site additions to
 .Pa /etc/monthly
-.Pa /etc/monthly.conf
 .Sh SEE ALSO
 .Xr daily.conf 5 ,
 .Xr weekly.conf 5
diff -r d8a603396ac7 -r 29ad5939de0b share/man/man5/weekly.conf.5
--- a/share/man/man5/weekly.conf.5      Mon Jan 10 16:58:38 2000 +0000
+++ b/share/man/man5/weekly.conf.5      Mon Jan 10 17:03:49 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: weekly.conf.5,v 1.4 1999/03/17 20:19:49 garbled Exp $
+.\"    $NetBSD: weekly.conf.5,v 1.5 2000/01/10 17:03:49 ad Exp $
 .\"
 .\" Copyright (c) 1996 Matthew R. Green
 .\" All rights reserved.
@@ -55,8 +55,14 @@
 .El
 .Pp
 .Sh FILES
+.Bl -tag -width /etc/weekly.local -compact
+.It Pa /etc/weekly
+weekly maintenance script
+.It Pa /etc/weekly.conf
+weekly maintenance configuration
+.It Pa /etc/weekly.local
+local site additions to
 .Pa /etc/weekly
-.Pa /etc/weekly.conf
 .Sh SEE ALSO
 .Xr daily.conf 5 ,
 .Xr monthly.conf 5



Home | Main Index | Thread Index | Old Index