summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/dashboard-httpd.service6
-rw-r--r--systemd/dashboard-httpd.socket8
2 files changed, 14 insertions, 0 deletions
diff --git a/systemd/dashboard-httpd.service b/systemd/dashboard-httpd.service
new file mode 100644
index 0000000..17d45fa
--- /dev/null
+++ b/systemd/dashboard-httpd.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Dashboard HTTP server
+Requires=dashboard-httpd.socket
+
+[Service]
+ExecStart=/bin/sh -c '~/dashboard/bin/httpd'
diff --git a/systemd/dashboard-httpd.socket b/systemd/dashboard-httpd.socket
new file mode 100644
index 0000000..e49aac4
--- /dev/null
+++ b/systemd/dashboard-httpd.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=Dashboard HTTP server
+
+[Socket]
+ListenStream=41198
+
+[Install]
+WantedBy=sockets.target