about summary refs log tree commit homepage
path: root/examples/unsubscribe-psgi.socket
diff options
context:
space:
mode:
Diffstat (limited to 'examples/unsubscribe-psgi.socket')
-rw-r--r--examples/unsubscribe-psgi.socket11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/unsubscribe-psgi.socket b/examples/unsubscribe-psgi.socket
new file mode 100644
index 00000000..e7ab797b
--- /dev/null
+++ b/examples/unsubscribe-psgi.socket
@@ -0,0 +1,11 @@
+# ==> /etc/systemd/system/unsubscribe-psgi.socket <==
+[Unit]
+Description = unsubscribe PSGI socket
+
+[Socket]
+# Forward to the PSGI using nginx or similar
+ListenStream = /run/unsubscribe-psgi.sock
+Service = unsubscribe-psgi@1.service
+
+[Install]
+WantedBy = sockets.target