summaryrefslogtreecommitdiff
path: root/event-httpd.service.in
diff options
context:
space:
mode:
authorRussell King <rmk@armlinux.org.uk>2021-04-16 14:01:05 +0100
committerRussell King <rmk@armlinux.org.uk>2021-04-16 14:01:05 +0100
commit9d7b0311d5948fca09b19dbe27e5f506e2e303e0 (patch)
tree1accaf615f2f744232fceed6a9a8ceca6cde7c53 /event-httpd.service.in
event-httpd: add event httpd support
Add event httpd, which is a small and basic http server designed to provide server sent events to clients. The server accepts updates through a simple "UPDATE" method which are then broadcast to clients listening using the "GET" method. Signed-off-by: Russell King <rmk@armlinux.org.uk>
Diffstat (limited to 'event-httpd.service.in')
-rw-r--r--event-httpd.service.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/event-httpd.service.in b/event-httpd.service.in
new file mode 100644
index 0000000..85983b9
--- /dev/null
+++ b/event-httpd.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description=event stream service
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=@sbindir@/event-httpd
+Restart=on-failure
+NoNewPrivileges=yes
+DynamicUser=yes
+
+[Install]
+WantedBy=multi-user.target