about summary refs log tree commit homepage
path: root/examples/public-inbox-httpd.socket
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-13 04:53:30 +0000
committerEric Wong <e@80x24.org>2016-06-13 04:56:33 +0000
commit9dc61f9132a7c4ac4a4d067cdd48efb7c28de102 (patch)
tree940986f5bdce17db304ecb57ac24a14b188feb40 /examples/public-inbox-httpd.socket
parentb6e2d71cd342a55e942915a082ca3fd15812e48d (diff)
downloadpublic-inbox-9dc61f9132a7c4ac4a4d067cdd48efb7c28de102.tar.gz
Since our daemons are built to take advantage of socket activation,
provide example files to allow systems administrators to hit the
ground running with systemd.

Example init files for other systems greatly appreciated.
Diffstat (limited to 'examples/public-inbox-httpd.socket')
-rw-r--r--examples/public-inbox-httpd.socket10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/public-inbox-httpd.socket b/examples/public-inbox-httpd.socket
new file mode 100644
index 00000000..da37aec9
--- /dev/null
+++ b/examples/public-inbox-httpd.socket
@@ -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