Files
nginx-unit/pkg/rpm/rpmbuild/SOURCES/unit.logrotate
Andrei Belov 3644883aa8 Packages: added logrotate configuration for Debian packages.
While here, made logrotate configuration consistent between rpm and deb.

This closes #323 issue on GitHub.
2019-09-25 15:28:20 +03:00

15 lines
267 B
Plaintext

/var/log/unit/*.log {
daily
missingok
rotate 7
compress
delaycompress
nocreate
notifempty
postrotate
if [ -f /var/run/unit/unit.pid ]; then
/bin/kill -SIGUSR1 `cat /var/run/unit/unit.pid`
fi
endscript
}