From af78050297c4fcd40a286a7a75395db23ac689d2 Mon Sep 17 00:00:00 2001 From: Wade Cline Date: Tue, 19 Jul 2022 02:21:17 -0700 Subject: Allow logrotate to rotate logs with just a pid file. Ref: #1991--- make/template/logrotate | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/make/template/logrotate b/make/template/logrotate index 996124647..ccef31fbe 100644 --- a/make/template/logrotate +++ b/make/template/logrotate @@ -28,7 +28,10 @@ rotate 8 weekly postrotate - if [ -d /lib/systemd ] + if [ -r "@RUNTIME_DIR@/inspircd.pid" ] + then + kill -HUP $(cat "@RUNTIME_DIR@/inspircd.pid") + elif [ -d /lib/systemd ] then if systemctl --quiet is-active inspircd then -- cgit v1.3.1-10-gc9f91