summaryrefslogtreecommitdiff
path: root/system/apcupsd/apcupsd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'system/apcupsd/apcupsd.logrotate')
-rw-r--r--system/apcupsd/apcupsd.logrotate8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/apcupsd/apcupsd.logrotate b/system/apcupsd/apcupsd.logrotate
new file mode 100644
index 0000000000..507c9cdaf3
--- /dev/null
+++ b/system/apcupsd/apcupsd.logrotate
@@ -0,0 +1,8 @@
+/var/log/apcupsd.events {
+ rotate 4
+ weekly
+ notifempty
+ postrotate
+ /etc/rc.d/rc.apcupsd restart 1>/dev/null || true
+ endscript
+}