Răsfoiți Sursa

2020.02.15 / Folus Wen

Actions:
1. logrotate configuration add size(50M limit.
2. logrotate running period change to hourly on crond.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.PH
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 5 ani în urmă
părinte
comite
c4fae8d5a1

+ 2 - 1
EVSE/rootfs/etc/logrotate.d/evse

@@ -1,6 +1,7 @@
 /Storage/**/*Log /Storage/**/*.log{
-        weekly
+	weekly
         rotate 24
+	size 50M
         missingok
         compress
         notifempty

+ 1 - 1
EVSE/rootfs/var/spool/cron/crontabs/root

@@ -22,4 +22,4 @@
 # m h  dom mon dow   command
 0 0 * * * cat "" > /Storage/SystemLog/check_tmate.log
 * * * * * /usr/bin/check_tmate.sh >> /Storage/SystemLog/check_tmate.log 2>&1
-0 0 * * * /sbin/logrotate /etc/logrotate.conf
+0 * * * * /sbin/logrotate /etc/logrotate.conf