]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/public-inbox-httpd.socket
examples: systemd socket and service definitions for daemons
[public-inbox.git] / examples / public-inbox-httpd.socket
diff --git a/examples/public-inbox-httpd.socket b/examples/public-inbox-httpd.socket
new file mode 100644 (file)
index 0000000..da37aec
--- /dev/null
@@ -0,0 +1,10 @@
+# ==> /etc/systemd/system/public-inbox-httpd.socket <==
+[Unit]
+Description = public-inbox-httpd socket
+
+[Socket]
+ListenStream = 127.0.0.1:280
+Service = public-inbox-httpd@1.service
+
+[Install]
+WantedBy = sockets.target