]> git.hoellein.online Git - homeserver/commitdiff
daily autocommit
authormhoellein <mhoellein@freenet.de>
Mon, 27 Jan 2020 23:21:19 +0000 (00:21 +0100)
committermhoellein <mhoellein@freenet.de>
Mon, 27 Jan 2020 23:21:19 +0000 (00:21 +0100)
.etckeeper
apcupsd/apcupsd.conf
logrotate.d/apcupsd [new file with mode: 0644]
logrotate.d/dhcp [new file with mode: 0644]

index 8feb8d285c9d94ba893f5f244018509d92d4f0c7..ece3023efcdf6d7a09a07bd6be2887561276317f 100755 (executable)
@@ -6802,6 +6802,7 @@ maybe chmod 0644 'logrotate.conf'
 maybe chmod 0755 'logrotate.d'
 maybe chmod 0644 'logrotate.d/alternatives'
 maybe chmod 0644 'logrotate.d/apache2'
+maybe chmod 0644 'logrotate.d/apcupsd'
 maybe chmod 0644 'logrotate.d/apt'
 maybe chmod 0644 'logrotate.d/aptitude'
 maybe chmod 0644 'logrotate.d/asterisk'
@@ -6809,6 +6810,7 @@ maybe chmod 0644 'logrotate.d/certbot'
 maybe chmod 0644 'logrotate.d/consolekit'
 maybe chmod 0644 'logrotate.d/cups-daemon'
 maybe chmod 0644 'logrotate.d/dbconfig-common'
+maybe chmod 0644 'logrotate.d/dhcp'
 maybe chmod 0644 'logrotate.d/dpkg'
 maybe chmod 0644 'logrotate.d/fail2ban'
 maybe chmod 0644 'logrotate.d/homematic'
index dbedc799db8adf241cc1a58b77f2ecf0d429a02c..0695d094471de4f7180d880b0742be603e93f4bf 100644 (file)
@@ -249,7 +249,7 @@ UPSMODE disable
 #
 
 # Time interval in seconds between writing the STATUS file; 0 disables
-STATTIME 0
+STATTIME 300
 
 # Location of STATUS file (written to only if STATTIME is non-zero)
 STATFILE /var/log/apcupsd.status
@@ -259,11 +259,11 @@ STATFILE /var/log/apcupsd.status
 #       you turn this on, be sure that the
 #       file defined in syslog.conf for LOG_NOTICE is a named pipe.
 #  You probably do not want this on.
-LOGSTATS off
+LOGSTATS o
 
 # Time interval in seconds between writing the DATA records to
 #   the log file. 0 disables.
-DATATIME 0
+DATATIME 300
 
 # FACILITY defines the logging facility (class) for logging to syslog. 
 #          If not specified, it defaults to "daemon". This is useful 
diff --git a/logrotate.d/apcupsd b/logrotate.d/apcupsd
new file mode 100644 (file)
index 0000000..cbdc81e
--- /dev/null
@@ -0,0 +1,11 @@
+/var/log/apcupsd.status /var/log/apcupsd.events {
+       missingok
+       weekly
+       size=+5M
+       rotate 7
+       compress
+       su
+       postrotate
+                /bin/systemctl restart apcupsd.service >/dev/null 2>&1 || true
+        endscript
+}
diff --git a/logrotate.d/dhcp b/logrotate.d/dhcp
new file mode 100644 (file)
index 0000000..3aa7a0a
--- /dev/null
@@ -0,0 +1,8 @@
+/var/log/dhcp.log {
+       missingok
+       weekly
+       size=+5M
+       rotate 5
+       compress
+       su
+}