diff options
Diffstat (limited to 'system/apcupsd/apcupsd.logrotate')
-rw-r--r-- | system/apcupsd/apcupsd.logrotate | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/system/apcupsd/apcupsd.logrotate b/system/apcupsd/apcupsd.logrotate new file mode 100644 index 000000000000..507c9cdaf352 --- /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 +} |