summaryrefslogtreecommitdiff
path: root/src/etc/cron.hourly/vyos-logrotate-hourly
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/cron.hourly/vyos-logrotate-hourly')
-rwxr-xr-xsrc/etc/cron.hourly/vyos-logrotate-hourly4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/cron.hourly/vyos-logrotate-hourly b/src/etc/cron.hourly/vyos-logrotate-hourly
new file mode 100755
index 000000000..f4f56a9c2
--- /dev/null
+++ b/src/etc/cron.hourly/vyos-logrotate-hourly
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+test -x /usr/sbin/logrotate || exit 0
+/usr/sbin/logrotate /etc/logrotate.conf