See the following links for details: https://github.com/nginx/unit/pull/212 https://github.com/nginx/unit/issues/213 Closes #155, closes #212, closes #213.
11 lines
213 B
Plaintext
11 lines
213 B
Plaintext
/var/log/unit/*.log {
|
|
missingok
|
|
nocreate
|
|
notifempty
|
|
postrotate
|
|
if [ -f /var/run/unit/unit.pid ]; then
|
|
/bin/kill -SIGUSR1 `cat /var/run/unit/unit.pid`
|
|
fi
|
|
endscript
|
|
}
|