mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Update librenms.logrotate - Change path /opt/librenms/logs/*log so that logrotate catches http logs (access_log and error_log). - Added SU parameter to rotate files with librenms user, as it was throwing insecure permissions error without it. - Added CREATE parameter to create new log files as librenms user. * Update librenms.logrotate
12 lines
198 B
Plaintext
12 lines
198 B
Plaintext
# /etc/logrotate.d/librenms
|
|
/opt/librenms/logs/*log {
|
|
su librenms librenms
|
|
weekly
|
|
rotate 6
|
|
compress
|
|
delaycompress
|
|
missingok
|
|
notifempty
|
|
create 664 librenms librenms
|
|
}
|