net-misc/i2pd: correct pid file for logrotate
authorAlexey Korepanov <kaikaikai@yandex.ru>
Sun, 10 Apr 2016 21:27:20 +0000 (22:27 +0100)
committerAnthony G. Basile <blueness@gentoo.org>
Mon, 9 May 2016 08:05:40 +0000 (04:05 -0400)
net-misc/i2pd/files/i2pd-2.6.0-r3.logrotate [new file with mode: 0644]
net-misc/i2pd/i2pd-2.6.0-r3.ebuild

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 (file)
index 0000000..251128b
--- /dev/null
@@ -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
+}
+
index 41d1ad135769bd96b95f496ab44df3f57087fdea..de78320d7981fde33135c3899abf278551abbdc5 100644 (file)
@@ -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() {