]> Sergey Matveev's repositories - public-inbox.git/blob - examples/unsubscribe-psgi@.service
convert: avoid redundant "done\n" statement for fast-import
[public-inbox.git] / examples / unsubscribe-psgi@.service
1 # ==> /etc/systemd/system/unsubscribe-psgi@.service <==
2 # The '@' is to allow multiple simultaneous services to start
3 # and share the same socket so new code can be cycled in
4 # without downtime
5
6 [Unit]
7 Description = unsubscribe PSGI %i
8 Wants = unsubscribe-psgi.socket
9 After = unsubscribe-psgi.socket
10
11 [Service]
12 # any PSGI server ought to work,
13 # but public-inbox-httpd supports socket activation like unsubscribe.milter
14 ExecStart = /usr/local/bin/public-inbox-httpd -W0 /etc/unsubscribe.psgi
15 Sockets = unsubscribe-psgi.socket
16 # we need to modify the mlmmj spool
17 User = mlmmj
18 KillMode = process
19
20 [Install]
21 WantedBy = multi-user.target