mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
16 lines
317 B
Plaintext
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
|
|
}
|