diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-05-18 09:03:41 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-05-18 09:05:59 +0200 |
commit | bd1911fdc84b38dfd4136b8986b49940bc34c946 (patch) | |
tree | b959879281c768953d36d9708d6f9e69f23ca281 /net-im | |
parent | dev-python/protobuf-python: Use PEP517 build (diff) | |
download | gentoo-bd1911fdc84b38dfd4136b8986b49940bc34c946.tar.gz gentoo-bd1911fdc84b38dfd4136b8986b49940bc34c946.tar.bz2 gentoo-bd1911fdc84b38dfd4136b8986b49940bc34c946.zip |
net-im/ejabberd: bring back logrotate
Bug: https://bugs.gentoo.org/841976
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/ejabberd/ejabberd-22.05-r1.ebuild (renamed from net-im/ejabberd/ejabberd-22.05.ebuild) | 3 | ||||
-rw-r--r-- | net-im/ejabberd/files/ejabberd-22.05.logrotate | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/net-im/ejabberd/ejabberd-22.05.ebuild b/net-im/ejabberd/ejabberd-22.05-r1.ebuild index 029431d351cb..eae32ae4c02d 100644 --- a/net-im/ejabberd/ejabberd-22.05.ebuild +++ b/net-im/ejabberd/ejabberd-22.05-r1.ebuild @@ -168,6 +168,9 @@ src_install() { newinitd "${FILESDIR}/${PN}-22.05.initd" "${PN}" systemd_dounit "${PN}.service" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}-22.05.logrotate" "${PN}" + keepdir /var/{lib,log}/ejabberd } diff --git a/net-im/ejabberd/files/ejabberd-22.05.logrotate b/net-im/ejabberd/files/ejabberd-22.05.logrotate new file mode 100644 index 000000000000..fd51673fc428 --- /dev/null +++ b/net-im/ejabberd/files/ejabberd-22.05.logrotate @@ -0,0 +1,13 @@ +/var/log/ejabberd/*.log { + su ejabberd ejabberd + weekly + rotate 4 + missingok + nocreate + sharedscripts + notifempty + compress + postrotate + /usr/sbin/ejabberdctl reopen-log > /dev/null 2>&1 || true + endscript +} |