diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/rhrdtime.service | 6 | ||||
-rw-r--r-- | debian/rhrdtime.socket | 9 |
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 |