From 3644883aa8f87a54fcbca1dfc737e40e12e18a19 Mon Sep 17 00:00:00 2001 From: Andrei Belov Date: Wed, 25 Sep 2019 15:28:20 +0300 Subject: Packages: added logrotate configuration for Debian packages. While here, made logrotate configuration consistent between rpm and deb. This closes #323 issue on GitHub. --- pkg/deb/debian/unit.logrotate | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pkg/deb/debian/unit.logrotate (limited to 'pkg/deb') diff --git a/pkg/deb/debian/unit.logrotate b/pkg/deb/debian/unit.logrotate new file mode 100644 index 00000000..416947ca --- /dev/null +++ b/pkg/deb/debian/unit.logrotate @@ -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 +} -- cgit