]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
examples/unsubscribe-milter@.service: use KillMode=process
authorEric Wong <e@80x24.org>
Tue, 16 Jan 2024 11:52:52 +0000 (11:52 +0000)
committerEric Wong <e@80x24.org>
Wed, 17 Jan 2024 09:37:54 +0000 (09:37 +0000)
This can be a multi-process daemon, but systemd should only kill
the top-level one.  And also finish a comment about the User
having access to the shared private key.

examples/unsubscribe-milter@.service

index eb5dcbe489c87c7eb883ae82ab57efa2eecd6d2d..a68e6e81858fe51afd9c629e29e6592ff82aa186 100644 (file)
@@ -24,7 +24,13 @@ Sockets = unsubscribe-milter.socket
 
 # the corresponding PSGI app needs permissions to modify the
 # mlmmj spool, so we might as well use the same user since
+# they both need to read /home/mlmmj/.unsubscribe.key
 User = mlmmj
 
+# only kill the parent process when using the default Sendmail::PMilter
+# postfork dispatcher, children will die naturally when they're done
+# with a given message.
+KillMode = process
+
 [Install]
 WantedBy = multi-user.target