summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1996-10-19 21:52:16 +0000
committeralex <alex@FreeBSD.org>1996-10-19 21:52:16 +0000
commitab0e4951ed6afd1283f20ba18537581f1e7b61da (patch)
tree1c73b3f31cc6f64090cff2d866796e0db885973e /etc
parent7153d808f58ba378e4e82c8a85ff8bd7224bdded (diff)
downloadFreeBSD-src-ab0e4951ed6afd1283f20ba18537581f1e7b61da.zip
FreeBSD-src-ab0e4951ed6afd1283f20ba18537581f1e7b61da.tar.gz
Invoke weekly.local and monthly.local if they exist.
Suggested by: jkh
Diffstat (limited to 'etc')
-rw-r--r--etc/monthly6
-rw-r--r--etc/weekly8
2 files changed, 13 insertions, 1 deletions
diff --git a/etc/monthly b/etc/monthly
index b96bb38..142250e 100644
--- a/etc/monthly
+++ b/etc/monthly
@@ -10,3 +10,9 @@ echo "Subject: $host monthly run output"
echo ""
echo "Doing login accounting:"
ac -p | sort -nr +1
+
+if [ -f /etc/monthly.local ]; then
+ echo ""
+ echo "Running monthly.local:"
+ sh /etc/monthly.local
+fi
diff --git a/etc/weekly b/etc/weekly
index 3c32b56..e201059 100644
--- a/etc/weekly
+++ b/etc/weekly
@@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)weekly 5.14 (Berkeley) 6/23/91
-# $Id: weekly,v 1.15 1996/05/13 22:05:10 wosch Exp $
+# $Id: weekly,v 1.16 1996/05/18 20:30:04 nate Exp $
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
export PATH
@@ -65,3 +65,9 @@ echo "Cleaning up kernel database files:"
kernel=`sysctl -n kern.bootfile`
kernel=kvm_`basename ${kernel}`.db
find /var/db -name "kvm_*.db" -a ! -name ${kernel} -a -atime +7 -exec rm -f -- {} \;
+
+if [ -f /etc/weekly.local ]; then
+ echo ""
+ echo "Running weekly.local:"
+ sh /etc/weekly.local
+fi
OpenPOWER on IntegriCloud