| # ==> /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 |
| |
| # NonBlocking is REQUIRED to avoid a race condition if running |
| # simultaneous services |
| NonBlocking = true |
| Sockets = unsubscribe-psgi.socket |
| |
| # we need to modify the mlmmj spool |
| User = mlmmj |
| KillMode = process |
| |
| [Install] |
| WantedBy = multi-user.target |