about summary refs log tree commit homepage
path: root/examples/unsubscribe-psgi@.service
blob: f588886b62e76203da25b6c983025829d8f431d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# ==> /etc/systemd/system/unsubscribe-psgi@.service <==
# The '@' is to allow multiple simultaneous services to start
# and share the same socket so new code can be cycled in
# without downtime

[Unit]
Description = unsubscribe PSGI %i
Wants = unsubscribe-psgi.socket
After = unsubscribe-psgi.socket

[Service]
# any PSGI server ought to work,
# but public-inbox-httpd supports socket activation like unsubscribe.milter
ExecStart = /usr/local/bin/public-inbox-httpd /etc/unsubscribe.psgi
Sockets = unsubscribe-psgi.socket
# we need to modify the mlmmj spool
User = mlmmj

[Install]
WantedBy = multi-user.target