Search found 1 match

by kaaswe
Sunday 10 January 2016 12:58
Forum: Other questions and discussions
Topic: Best practices for Domoticz logfile?
Replies: 55
Views: 25398

Re: Best practices for Domoticz logfile?

This is my working logrotate. /var/log is mounted as tmpfs in fstab.


# vi /etc/logrotate.d/domoticz
/var/log/domoticz.log {
# size 5M
daily
rotate 1
compress
dateext
# maxage 1
postrotate
/usr/bin/killall -HUP /home/pi/domoticz/domoticz
endscript
su root root
}