]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
examples/logrotate: only SIGUSR1 main process
authorEric Wong <e@80x24.org>
Sat, 28 Oct 2023 18:01:13 +0000 (18:01 +0000)
committerEric Wong <e@80x24.org>
Sat, 28 Oct 2023 23:09:39 +0000 (23:09 +0000)
There's no need to send SIGUSR1 to auxiliary processes since
they don't know what to do with them.

examples/logrotate.conf

index 4ce0884347769be52efe84978a4e4556c9aa0674..fad40cfcca0002cea45fbed2e007644ef63b0715 100644 (file)
@@ -18,7 +18,7 @@
                # systemd users do not need PID files,
                # only signal the @1 process since the @2 is short-lived
                # For systemd users, assuming you use two services
-               systemctl kill -s SIGUSR1 public-inbox-httpd@1.service
-               systemctl kill -s SIGUSR1 public-inbox-nntpd@1.service
+               systemctl kill -s SIGUSR1 --kill-who=main \
+                               public-inbox-netd@1.service
        endscript
 }