summaryrefslogtreecommitdiffstats
path: root/etc/periodic/daily/130.clean-msgs
diff options
context:
space:
mode:
Diffstat (limited to 'etc/periodic/daily/130.clean-msgs')
-rwxr-xr-xetc/periodic/daily/130.clean-msgs11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/periodic/daily/130.clean-msgs b/etc/periodic/daily/130.clean-msgs
new file mode 100755
index 0000000..5279641
--- /dev/null
+++ b/etc/periodic/daily/130.clean-msgs
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# $Id: 130.clean-msgs,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+#
+# remove system messages older than 21 days
+#
+if [ -d /var/msgs ] ; then
+ echo
+ echo "Cleaning out old system announcements:"
+ msgs -c
+fi
OpenPOWER on IntegriCloud