summaryrefslogtreecommitdiff
path: root/source/a/logrotate/logrotate.cron
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/logrotate/logrotate.cron')
-rw-r--r--source/a/logrotate/logrotate.cron3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/a/logrotate/logrotate.cron b/source/a/logrotate/logrotate.cron
new file mode 100644
index 00000000..f91b3add
--- /dev/null
+++ b/source/a/logrotate/logrotate.cron
@@ -0,0 +1,3 @@
+#!/bin/sh
+/usr/sbin/logrotate /etc/logrotate.conf
+[ $? != 0 ] && /usr/bin/logger -t logrotate "ALERT - exited abnormally."