about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2024-01-16 11:52:52 +0000
committerEric Wong <e@80x24.org>2024-01-17 09:37:54 +0000
commitf37e32870a213068ed398db5a012000fe1c3d8a6 (patch)
tree30d49d8a4f315bfbdce2d5cdc3bd34f69f7476ff
parent9b381304c383df305ee0d1f082d4747ef336e936 (diff)
downloadpublic-inbox-f37e32870a213068ed398db5a012000fe1c3d8a6.tar.gz
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.
-rw-r--r--examples/unsubscribe-milter@.service6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/unsubscribe-milter@.service b/examples/unsubscribe-milter@.service
index eb5dcbe4..a68e6e81 100644
--- a/examples/unsubscribe-milter@.service
+++ b/examples/unsubscribe-milter@.service
@@ -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