Files
nginx-unit/pkg/deb/debian/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

16 lines
272 B
Plaintext

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