mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Update librenms.logrotate (#8220)
* 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
This commit is contained in:
		@@ -1,9 +1,11 @@
 | 
			
		||||
# /etc/logrotate.d/librenms
 | 
			
		||||
/opt/librenms/logs/*.log {
 | 
			
		||||
/opt/librenms/logs/*log {
 | 
			
		||||
    su librenms librenms
 | 
			
		||||
    weekly
 | 
			
		||||
    rotate 6
 | 
			
		||||
    compress
 | 
			
		||||
    delaycompress
 | 
			
		||||
    missingok
 | 
			
		||||
    notifempty
 | 
			
		||||
    create 664 librenms librenms
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user