summaryrefslogtreecommitdiff
path: root/roles/elevate/dolmetsch-raspi/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-26 16:50:52 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-26 16:50:52 +0100
commit313fe6119b019d7287c812993d7f73120d0e7031 (patch)
tree9a74be8d97cc9838af4059ff0b0c6126ed9aba22 /roles/elevate/dolmetsch-raspi/templates
parentfix usb/vm-install (diff)
improved restart for systtemd units on dolmetsch raspi
Diffstat (limited to 'roles/elevate/dolmetsch-raspi/templates')
-rw-r--r--roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j24
-rw-r--r--roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j24
-rw-r--r--roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j24
-rw-r--r--roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j24
4 files changed, 16 insertions, 0 deletions
diff --git a/roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j2 b/roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j2
index 53ce6734..cd97cc3e 100644
--- a/roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j2
+++ b/roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j2
@@ -4,6 +4,10 @@ Description=dolmetschctl Client
[Service]
{# TODO: remove hardcoded IP #}
ExecStart=/opt/dolmetschctl/bin/dolmetschctl 192.168.48.102:8234
+Restart=always
+RestartSecs=1s
+StartLimitBurst=10
+StartLimitIntervalSec=5s
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
PrivateTmp=yes
diff --git a/roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j2 b/roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j2
index d26d1313..c8c9ca79 100644
--- a/roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j2
+++ b/roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j2
@@ -3,6 +3,10 @@ Description=dolmetschctl Server
[Service]
ExecStart=/opt/dolmetschctl/bin/dolmetschctld
+Restart=always
+RestartSecs=1s
+StartLimitBurst=10
+StartLimitIntervalSec=5s
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
PrivateTmp=yes
diff --git a/roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j2 b/roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j2
index 4f7cf889..b338ff65 100644
--- a/roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j2
+++ b/roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j2
@@ -4,6 +4,10 @@ Description=RTP Receiver
[Service]
{# TODO: remove hardcoded IP #}
ExecStart=/usr/local/bin/rtp-recv.sh 192.168.48.103
+Restart=always
+RestartSecs=1s
+StartLimitBurst=10
+StartLimitIntervalSec=5s
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
PrivateTmp=yes
diff --git a/roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j2 b/roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j2
index 47903afd..40a029ab 100644
--- a/roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j2
+++ b/roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j2
@@ -4,6 +4,10 @@ Description=RTP Sender
[Service]
{# TODO: remove hardcoded IP #}
ExecStart=/usr/local/bin/rtp-send.sh 192.168.48.102
+Restart=always
+RestartSecs=1s
+StartLimitBurst=10
+StartLimitIntervalSec=5s
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
PrivateTmp=yes