From e578f4538dad9aa7cd977094e58293e847990d30 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 30 Jul 2021 21:54:12 +0200 Subject: move dolmetsch-raspi to generic folder --- .../templates/dolmetschctl.service.j2 | 22 ---------------------- .../templates/dolmetschctld.service.j2 | 21 --------------------- .../dolmetsch-raspi/templates/rtp-recv.service.j2 | 22 ---------------------- .../dolmetsch-raspi/templates/rtp-recv.sh.j2 | 14 -------------- .../dolmetsch-raspi/templates/rtp-send.service.j2 | 22 ---------------------- .../dolmetsch-raspi/templates/rtp-send.sh.j2 | 14 -------------- 6 files changed, 115 deletions(-) delete mode 100644 roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j2 delete mode 100644 roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j2 delete mode 100644 roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j2 delete mode 100644 roles/elevate/dolmetsch-raspi/templates/rtp-recv.sh.j2 delete mode 100644 roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j2 delete mode 100644 roles/elevate/dolmetsch-raspi/templates/rtp-send.sh.j2 (limited to 'roles/elevate/dolmetsch-raspi/templates') diff --git a/roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j2 b/roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j2 deleted file mode 100644 index cd97cc3e..00000000 --- a/roles/elevate/dolmetsch-raspi/templates/dolmetschctl.service.j2 +++ /dev/null @@ -1,22 +0,0 @@ -[Unit] -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 -ProtectSystem=strict -ProtectHome=yes -ProtectKernelTunables=yes -ProtectControlGroups=yes -RestrictRealtime=yes -RestrictAddressFamilies=AF_INET AF_INET6 - -[Install] -WantedBy=multi-user.target diff --git a/roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j2 b/roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j2 deleted file mode 100644 index c8c9ca79..00000000 --- a/roles/elevate/dolmetsch-raspi/templates/dolmetschctld.service.j2 +++ /dev/null @@ -1,21 +0,0 @@ -[Unit] -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 -ProtectSystem=strict -ProtectHome=yes -ProtectKernelTunables=yes -ProtectControlGroups=yes -RestrictRealtime=yes -RestrictAddressFamilies=AF_INET AF_INET6 - -[Install] -WantedBy=multi-user.target diff --git a/roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j2 b/roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j2 deleted file mode 100644 index b338ff65..00000000 --- a/roles/elevate/dolmetsch-raspi/templates/rtp-recv.service.j2 +++ /dev/null @@ -1,22 +0,0 @@ -[Unit] -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 -ProtectSystem=strict -ProtectHome=yes -ProtectKernelTunables=yes -ProtectControlGroups=yes -RestrictRealtime=yes -RestrictAddressFamilies=AF_INET AF_INET6 - -[Install] -WantedBy=multi-user.target diff --git a/roles/elevate/dolmetsch-raspi/templates/rtp-recv.sh.j2 b/roles/elevate/dolmetsch-raspi/templates/rtp-recv.sh.j2 deleted file mode 100644 index c9a89f95..00000000 --- a/roles/elevate/dolmetsch-raspi/templates/rtp-recv.sh.j2 +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -HOST="$1" -if [ -z "$HOST" ]; then - echo "usage: $0 " - exit 1 -fi - -#export GST_DEBUG=3 -exec gst-launch-1.0 rtpbin name=rtpbin latency=50 \ - udpsrc port=5000 caps="application/x-rtp,media=(string)audio,encoding-name=(string)OPUS,clock-rate=(int)48000" ! rtpbin.recv_rtp_sink_0 \ - rtpbin. ! rtpopusdepay ! opusdec ! alsasink \ - udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \ - rtpbin.send_rtcp_src_0 ! udpsink "host=$HOST" port=5001 sync=false async=false diff --git a/roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j2 b/roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j2 deleted file mode 100644 index 40a029ab..00000000 --- a/roles/elevate/dolmetsch-raspi/templates/rtp-send.service.j2 +++ /dev/null @@ -1,22 +0,0 @@ -[Unit] -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 -ProtectSystem=strict -ProtectHome=yes -ProtectKernelTunables=yes -ProtectControlGroups=yes -RestrictRealtime=yes -RestrictAddressFamilies=AF_INET AF_INET6 - -[Install] -WantedBy=multi-user.target diff --git a/roles/elevate/dolmetsch-raspi/templates/rtp-send.sh.j2 b/roles/elevate/dolmetsch-raspi/templates/rtp-send.sh.j2 deleted file mode 100644 index 9754b620..00000000 --- a/roles/elevate/dolmetsch-raspi/templates/rtp-send.sh.j2 +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -HOST="$1" -if [ -z "$HOST" ]; then - echo "usage: $0 " - exit 1 -fi - -#export GST_DEBUG=3 -exec gst-launch-1.0 rtpbin name=rtpbin \ - alsasrc device=hw:CODEC ! 'audio/x-raw,rate=48000,channels=1' ! opusenc ! rtpopuspay ! rtpbin.send_rtp_sink_0 \ - rtpbin.send_rtp_src_0 ! udpsink "host=$HOST" port=5000 \ - rtpbin.send_rtcp_src_0 ! udpsink "host=$HOST" port=5001 sync=false async=false \ - udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 -- cgit v1.2.3