summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/rpmbuild/SOURCES
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-09-25 15:28:20 +0300
committerAndrei Belov <defan@nginx.com>2019-09-25 15:28:20 +0300
commit3644883aa8f87a54fcbca1dfc737e40e12e18a19 (patch)
treedfc7c7c57b82e24b11e92a0ec0d45354fb65fa0b /pkg/rpm/rpmbuild/SOURCES
parent702ca2b85396d35a0c0e037852854fd9901e2a09 (diff)
downloadunit-3644883aa8f87a54fcbca1dfc737e40e12e18a19.tar.gz
unit-3644883aa8f87a54fcbca1dfc737e40e12e18a19.tar.bz2
Packages: added logrotate configuration for Debian packages.
While here, made logrotate configuration consistent between rpm and deb. This closes #323 issue on GitHub.
Diffstat (limited to 'pkg/rpm/rpmbuild/SOURCES')
-rw-r--r--pkg/rpm/rpmbuild/SOURCES/unit.logrotate4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/rpm/rpmbuild/SOURCES/unit.logrotate b/pkg/rpm/rpmbuild/SOURCES/unit.logrotate
index 8fb00199..806e4594 100644
--- a/pkg/rpm/rpmbuild/SOURCES/unit.logrotate
+++ b/pkg/rpm/rpmbuild/SOURCES/unit.logrotate
@@ -1,5 +1,9 @@
/var/log/unit/*.log {
+ daily
missingok
+ rotate 7
+ compress
+ delaycompress
nocreate
notifempty
postrotate