summaryrefslogtreecommitdiffstats
path: root/etc/monthly
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1993-06-20 13:41:45 +0000
committerrgrimes <rgrimes@FreeBSD.org>1993-06-20 13:41:45 +0000
commit241ccdeaf33c080d675cd85c358a16633866cf81 (patch)
treec84dd7ab382aa1dba3e4756697763fde81eccd04 /etc/monthly
parent146bcedccdd97829716f102265608ee44a35d3a1 (diff)
downloadFreeBSD-src-241ccdeaf33c080d675cd85c358a16633866cf81.zip
FreeBSD-src-241ccdeaf33c080d675cd85c358a16633866cf81.tar.gz
Initial import of 386BSD 0.1 othersrc/etc
Diffstat (limited to 'etc/monthly')
-rw-r--r--etc/monthly27
1 files changed, 27 insertions, 0 deletions
diff --git a/etc/monthly b/etc/monthly
new file mode 100644
index 0000000..e48ddd7
--- /dev/null
+++ b/etc/monthly
@@ -0,0 +1,27 @@
+#!/bin/sh -
+#
+# @(#)monthly 5.5 (Berkeley) 6/17/91
+#
+
+host=`hostname -s`
+echo "Subject: $host monthly run output"
+
+# echo ""
+# echo "Doing login accounting:"
+# ac -p | sort -nr +1
+
+echo ""
+echo -n "Rotating log files:"
+#cd /var/log
+for i in kerberos.log lpd-errs wtmp; do
+ echo -n " $i"
+ if [ -f $i.5 ]; then mv -f $i.5 $i.6; fi
+ if [ -f $i.4 ]; then mv -f $i.4 $i.5; fi
+ if [ -f $i.3 ]; then mv -f $i.3 $i.4; fi
+ if [ -f $i.2 ]; then mv -f $i.2 $i.3; fi
+ if [ -f $i.1 ]; then mv -f $i.1 $i.2; fi
+ if [ -f $i.0 ]; then mv -f $i.0 $i.1; fi
+ if [ -f $i ]; then mv -f $i $i.0; fi
+ >$i
+done
+echo ""
OpenPOWER on IntegriCloud