summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Korepanov <kaikaikai@yandex.ru>2016-04-10 22:27:20 +0100
committerAnthony G. Basile <blueness@gentoo.org>2016-05-09 04:05:40 -0400
commit73fd977b40449a5beca1fe80029898a357d98181 (patch)
tree72f036661a8c68a5a49677776898f531a166bc5a /net-misc
parentnet-misc/i2pd: ebuild cleanup (diff)
downloadgentoo-73fd977b40449a5beca1fe80029898a357d98181.tar.gz
gentoo-73fd977b40449a5beca1fe80029898a357d98181.tar.bz2
gentoo-73fd977b40449a5beca1fe80029898a357d98181.zip
net-misc/i2pd: correct pid file for logrotate
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/i2pd/files/i2pd-2.6.0-r3.logrotate11
-rw-r--r--net-misc/i2pd/i2pd-2.6.0-r3.ebuild2
2 files changed, 12 insertions, 1 deletions
diff --git a/net-misc/i2pd/files/i2pd-2.6.0-r3.logrotate b/net-misc/i2pd/files/i2pd-2.6.0-r3.logrotate
new file mode 100644
index 000000000000..251128b7be78
--- /dev/null
+++ b/net-misc/i2pd/files/i2pd-2.6.0-r3.logrotate
@@ -0,0 +1,11 @@
+/var/log/i2pd.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ create 640 i2pd i2pd
+ postrotate
+ /bin/kill -HUP $(cat /run/i2pd/i2pd.pid)
+ endscript
+}
+
diff --git a/net-misc/i2pd/i2pd-2.6.0-r3.ebuild b/net-misc/i2pd/i2pd-2.6.0-r3.ebuild
index 41d1ad135769..de78320d7981 100644
--- a/net-misc/i2pd/i2pd-2.6.0-r3.ebuild
+++ b/net-misc/i2pd/i2pd-2.6.0-r3.ebuild
@@ -91,7 +91,7 @@ src_install() {
# logrotate
insinto /etc/logrotate.d
- newins "${FILESDIR}/i2pd-2.5.0.logrotate" i2pd
+ newins "${FILESDIR}/i2pd-2.6.0-r3.logrotate" i2pd
}
pkg_setup() {