summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--sysconf/vyatta-logrotate-hourly5
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index ee53e446..501c8005 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -99,6 +99,9 @@ udevrulesdir = /lib/udev/rules.d
libudev_SCRIPTS = scripts/vyatta_net_name
udevrules_DATA = sysconf/65-vyatta-net.rules
+cronhourlydir = /etc/cron.hourly
+cronhourly_SCRIPTS = sysconf/vyatta-logrotate-hourly
+
rsyslogdir = /etc/rsyslog.d
rsyslog_DATA = sysconf/vyatta-log.conf
diff --git a/sysconf/vyatta-logrotate-hourly b/sysconf/vyatta-logrotate-hourly
new file mode 100644
index 00000000..055b4d5f
--- /dev/null
+++ b/sysconf/vyatta-logrotate-hourly
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+test -x /usr/sbin/logrotate || exit 0
+/usr/sbin/logrotate /etc/logrotate.conf
+