diff options
author | Remi Collet <remi@remirepo.net> | 2019-01-24 14:05:58 +0300 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-01-24 14:05:58 +0300 |
commit | b78ed44f396cbfde7d8353cbc3faaf35c0f4dddf (patch) | |
tree | c09cf51ffb7a146cbcb9e0bf686ae7ccd484275f /pkg/rpm/rpmbuild/SOURCES/unit.logrotate | |
parent | b1649bce9ed1521a48e18b22fb58aaf09f9637b0 (diff) | |
download | unit-b78ed44f396cbfde7d8353cbc3faaf35c0f4dddf.tar.gz unit-b78ed44f396cbfde7d8353cbc3faaf35c0f4dddf.tar.bz2 |
Packages: systemd and other improvements.
See the following links for details:
https://github.com/nginx/unit/pull/212
https://github.com/nginx/unit/issues/213
Closes #155, closes #212, closes #213.
Diffstat (limited to 'pkg/rpm/rpmbuild/SOURCES/unit.logrotate')
-rw-r--r-- | pkg/rpm/rpmbuild/SOURCES/unit.logrotate | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/rpm/rpmbuild/SOURCES/unit.logrotate b/pkg/rpm/rpmbuild/SOURCES/unit.logrotate new file mode 100644 index 00000000..8fb00199 --- /dev/null +++ b/pkg/rpm/rpmbuild/SOURCES/unit.logrotate @@ -0,0 +1,10 @@ +/var/log/unit/*.log { + missingok + nocreate + notifempty + postrotate + if [ -f /var/run/unit/unit.pid ]; then + /bin/kill -SIGUSR1 `cat /var/run/unit/unit.pid` + fi + endscript +} |