diff options
author | alex <alex@FreeBSD.org> | 1996-10-19 21:52:16 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1996-10-19 21:52:16 +0000 |
commit | ab0e4951ed6afd1283f20ba18537581f1e7b61da (patch) | |
tree | 1c73b3f31cc6f64090cff2d866796e0db885973e | |
parent | 7153d808f58ba378e4e82c8a85ff8bd7224bdded (diff) | |
download | FreeBSD-src-ab0e4951ed6afd1283f20ba18537581f1e7b61da.zip FreeBSD-src-ab0e4951ed6afd1283f20ba18537581f1e7b61da.tar.gz |
Invoke weekly.local and monthly.local if they exist.
Suggested by: jkh
-rw-r--r-- | etc/monthly | 6 | ||||
-rw-r--r-- | etc/weekly | 8 |
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 @@ -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 |