Invoke weekly.local and monthly.local if they exist.

Suggested by:	jkh
This commit is contained in:
Alexander Langer 1996-10-19 21:52:16 +00:00
parent 8b07755b31
commit 8ba20cc4bc
2 changed files with 13 additions and 1 deletions

View File

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

View File

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