public-inbox.git  about / heads / tags
an "archives first" approach to mailing lists
blob acc29e8e64c648a448ac4433fd587a17da561f78 634 bytes (raw)
$ git show ci-WIP:examples/unsubscribe-psgi@.service	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
# ==> /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 -W0 /etc/unsubscribe.psgi
Sockets = unsubscribe-psgi.socket
# we need to modify the mlmmj spool
User = mlmmj
KillMode = process

[Install]
WantedBy = multi-user.target

git clone https://public-inbox.org/public-inbox.git
git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git