]> Sergey Matveev's repositories - public-inbox.git/blob - examples/unsubscribe-psgi@.service
c8721fbe1d1bee5247ad721e656a5524dace2a72
[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
16 # NonBlocking is REQUIRED to avoid a race condition if running
17 # simultaneous services
18 NonBlocking = true
19 Sockets = unsubscribe-psgi.socket
20
21 # we need to modify the mlmmj spool
22 User = mlmmj
23 KillMode = process
24
25 [Install]
26 WantedBy = multi-user.target