summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Korepanov <kaikaikai@yandex.ru>2021-06-15 15:19:52 +0100
committerSam James <sam@gentoo.org>2021-06-15 14:39:30 +0000
commit9f98f4254c4abca5ccb691e83614386866942f2a (patch)
treef23817b3af3a6e160cbc90a2f7eb35b58a114114 /net-vpn
parentsci-libs/vtk: drop 8.2.0-r2 (diff)
downloadgentoo-9f98f4254c4abca5ccb691e83614386866942f2a.tar.gz
gentoo-9f98f4254c4abca5ccb691e83614386866942f2a.tar.bz2
gentoo-9f98f4254c4abca5ccb691e83614386866942f2a.zip
net-vpn/i2pd: fix logrotate #795123
Signed-off-by: Alexey Korepanov <kaikaikai@yandex.ru> Closes: https://bugs.gentoo.org/795123 Closes: https://github.com/gentoo/gentoo/pull/21254 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/i2pd/files/i2pd-2.38.0-r1.logrotate (renamed from net-vpn/i2pd/files/i2pd-2.6.0-r3.logrotate)4
-rw-r--r--net-vpn/i2pd/i2pd-2.38.0-r1.ebuild (renamed from net-vpn/i2pd/i2pd-2.38.0.ebuild)2
2 files changed, 4 insertions, 2 deletions
diff --git a/net-vpn/i2pd/files/i2pd-2.6.0-r3.logrotate b/net-vpn/i2pd/files/i2pd-2.38.0-r1.logrotate
index 251128b7be78..9245bca8c48e 100644
--- a/net-vpn/i2pd/files/i2pd-2.6.0-r3.logrotate
+++ b/net-vpn/i2pd/files/i2pd-2.38.0-r1.logrotate
@@ -5,7 +5,9 @@
notifempty
create 640 i2pd i2pd
postrotate
- /bin/kill -HUP $(cat /run/i2pd/i2pd.pid)
+ if [ -f /run/i2pd/i2pd.pid ]; then
+ /bin/kill -HUP $(/bin/cat /run/i2pd/i2pd.pid)
+ fi
endscript
}
diff --git a/net-vpn/i2pd/i2pd-2.38.0.ebuild b/net-vpn/i2pd/i2pd-2.38.0-r1.ebuild
index 847dab8ce292..b77a5dab495a 100644
--- a/net-vpn/i2pd/i2pd-2.38.0.ebuild
+++ b/net-vpn/i2pd/i2pd-2.38.0-r1.ebuild
@@ -79,7 +79,7 @@ src_install() {
# logrotate
insinto /etc/logrotate.d
- newins "${FILESDIR}/i2pd-2.6.0-r3.logrotate" i2pd
+ newins "${FILESDIR}/i2pd-2.38.0-r1.logrotate" i2pd
}
pkg_postinst() {