summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/daily6
-rw-r--r--etc/monthly9
-rw-r--r--etc/weekly6
3 files changed, 20 insertions, 1 deletions
diff --git a/etc/daily b/etc/daily
index b92916a5244..c0d3a051e99 100644
--- a/etc/daily
+++ b/etc/daily
@@ -6,6 +6,12 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
host=`hostname -s`
echo "Subject: $host daily run output"
+if [ -f /etc/daily.local ];then
+ echo ""
+ echo "Running daily.local:"
+ . /etc/daily.local
+fi
+
echo ""
echo "Removing scratch and junk files:"
if [ -d /tmp -a ! -h /tmp ]; then
diff --git a/etc/monthly b/etc/monthly
index 2a5e77e47e8..a545d8cef16 100644
--- a/etc/monthly
+++ b/etc/monthly
@@ -6,6 +6,14 @@
host=`hostname -s`
echo "Subject: $host monthly run output"
+if [ -f /etc/monthly.local ];then
+ echo ""
+ echo "Running monthly.local:"
+ . /etc/monthly.local
+else
+ echo "Nothing to do!"
+fi
+
# echo ""
# echo "Doing login accounting:"
# ac -p | sort -nr +1
@@ -17,5 +25,4 @@ echo "Subject: $host monthly run output"
# aculog
# cron
-echo "Nothing to do!"
#echo "."
diff --git a/etc/weekly b/etc/weekly
index c60679e8700..5878ed1385a 100644
--- a/etc/weekly
+++ b/etc/weekly
@@ -9,6 +9,12 @@ export PATH
host=`hostname -s`
echo "Subject: $host weekly run output"
+if [ -f /etc/weekly.local ];then
+ echo ""
+ echo "Running weekly.local:"
+ . /etc/weekly.local
+fi
+
#echo ""
#echo "Removing old .o files:"
#find /usr/src -name '*.o' -atime +21 -print -a -exec rm -f {} \;