ClickHouse/tools/logrotate/template
2014-12-09 17:10:59 +03:00

16 lines
317 B
Plaintext

/var/log/@DAEMON@/@DAEMON@*.log {
rotate 20
size 20M
compress
missingok
sharedscripts
nocreate
delaycompress
postrotate
PROGRAM=@DAEMON@
PIDDIR=/var/run/$PROGRAM
PIDFILE_RE="$PIDDIR/$PROGRAM[0-9]*.pid"
for PIDFILE in $(find $PIDDIR -regex "$PIDFILE_RE"); do kill -s USR1 `cat $PIDFILE`; done
endscript
}