X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=examples%2Funsubscribe-psgi%40.service;fp=examples%2Funsubscribe-psgi%40.service;h=f588886b62e76203da25b6c983025829d8f431d9;hb=1f29b33d3f71b8a40f5ae76bf20b95618b518654;hp=0000000000000000000000000000000000000000;hpb=d6cdb106f27abed5d05da035c95e106939fbe3b2;p=public-inbox.git diff --git a/examples/unsubscribe-psgi@.service b/examples/unsubscribe-psgi@.service new file mode 100644 index 00000000..f588886b --- /dev/null +++ b/examples/unsubscribe-psgi@.service @@ -0,0 +1,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