Skip to content

Commit

Permalink
Create icinga2-dashing logrotate script
Browse files Browse the repository at this point in the history
Create icinga2-dashing logrotate script for thin.log, because it could reach a huge size, if it wasn't rotate from time to time.
The script was tested on CentOS 7.x. The location is /etc/logrotate.d/icinga2-dashing .

refs #6

Signed-off-by: Michael Friedrich <[email protected]>
  • Loading branch information
tachtler authored and Michael Friedrich committed Apr 13, 2017
1 parent 70149d0 commit 0f3c77f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions icinga2-dashing
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/usr/share/icinga2-dashing/log/thin.log {
daily
rotate 7
compress
delaycompress
missingok
notifempty
postrotate
/bin/kill -USR1 $(cat /var/run/thin.pid 2> /dev/null) 2> /dev/null || true
endscript
}

0 comments on commit 0f3c77f

Please sign in to comment.