From 9dc61f9132a7c4ac4a4d067cdd48efb7c28de102 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Jun 2016 04:53:30 +0000 Subject: examples: systemd socket and service definitions for daemons 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. --- examples/public-inbox-httpd.socket | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/public-inbox-httpd.socket (limited to 'examples/public-inbox-httpd.socket') 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 -- cgit v1.2.3-24-ge0c7