ClickHouse/tools/logrotate/template
2014-02-10 12:41:00 +00:00

16 lines
265 B
Plaintext

/var/log/@DAEMON@/@DAEMON@*.log {
rotate 20
size 20M
compress
missingok
sharedscripts
nocreate
delaycompress
postrotate
PROGRAM=@DAEMON@
PIDDIR=/var/run/$PROGRAM
PIDFILE=$PIDDIR/$PROGRAM.pid
[ -f "$PIDFILE" ] && kill -s USR1 `cat $PIDFILE`
endscript
}