summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2017-03-24 17:50:02 (GMT)
committerChristian Pointner <equinox@helsinki.at>2017-03-24 17:50:02 (GMT)
commitc923c728751cfd34a6018c6cd805f17750b90663 (patch)
tree10923dcea0e558e968eb454460ce2e1036857020 /debian
parentfd7510119c442f32b61745dc5cb053cf9a84e86c (diff)
added system socket activation
Diffstat (limited to 'debian')
-rw-r--r--debian/rhrdtime.service6
-rw-r--r--debian/rhrdtime.socket9
2 files changed, 11 insertions, 4 deletions
diff --git a/debian/rhrdtime.service b/debian/rhrdtime.service
index 0d4658e..af54634 100644
--- a/debian/rhrdtime.service
+++ b/debian/rhrdtime.service
@@ -1,14 +1,12 @@
[Unit]
Description=Radio Helsinki Rivendell Time Websocket Server
+After=local-fs.target
[Service]
User=rhrdtime
Group=rhrdtime
+Type=simple
ExecStart=/usr/bin/rhrdtime
-Restart=always
-RestartSec=1s
-StartLimitInterval=5
-StartLimitBurst=6
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
diff --git a/debian/rhrdtime.socket b/debian/rhrdtime.socket
new file mode 100644
index 0000000..6718aa7
--- /dev/null
+++ b/debian/rhrdtime.socket
@@ -0,0 +1,9 @@
+[Unit]
+Description=Radio Helsinki Rivendell Time Websocket Server
+
+[Socket]
+ListenStream=127.0.0.1:3000
+ListenStream=[::1]:3000
+
+[Install]
+WantedBy=sockets.target