Logrotate configuration in Virtualmin
From HostThyself
Virtualmin module in Webmin has a Logrotate configuration for each virtual domain.
- Go to Server Templates
- Click on Default Settings if there is no custom settings
- Select Log File Rotation in the drop down list
- Select Directives below .. add the following
missingok
notifempty
rotate 5
compress
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript