diff options
| author | 2022-07-19 02:21:17 -0700 | |
|---|---|---|
| committer | 2022-07-19 10:21:17 +0100 | |
| commit | af78050297c4fcd40a286a7a75395db23ac689d2 (patch) | |
| tree | 94045059b7ae4d77f455e7f47434816ad1071bbd | |
| parent | Fix the logrotate config rotating already rotated log files. (diff) | |
Allow logrotate to rotate logs with just a pid file.
Ref: #1991
| -rw-r--r-- | make/template/logrotate | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
