logrotate
This commit is contained in:
		
							
								
								
									
										16
									
								
								logrotate_certpusher
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								logrotate_certpusher
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| /opt/certpusher/logs/*.log { | ||||
|     daily | ||||
|     rotate 7 | ||||
|     compress | ||||
|     delaycompress | ||||
|     missingok | ||||
|     notifempty | ||||
|     create 0644 root root | ||||
|     dateext | ||||
|     dateformat -%Y%m%d | ||||
|     extension .log | ||||
|     nomail | ||||
|     postrotate | ||||
|         find /opt/certpusher/logs -name "*.log*" -type f -mtime +3 -delete | ||||
|     endscript | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Mateusz Gruszczyński
					Mateusz Gruszczyński