Packages: added logrotate configuration for Debian packages.

While here, made logrotate configuration consistent between rpm and deb.

This closes #323 issue on GitHub.
This commit is contained in:
Andrei Belov
2019-09-25 15:28:20 +03:00
parent 702ca2b853
commit 3644883aa8
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
/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
}

View File

@@ -1,5 +1,9 @@
/var/log/unit/*.log { /var/log/unit/*.log {
daily
missingok missingok
rotate 7
compress
delaycompress
nocreate nocreate
notifempty notifempty
postrotate postrotate