diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-07-30 21:54:12 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-07-30 21:54:12 +0200 |
commit | e578f4538dad9aa7cd977094e58293e847990d30 (patch) | |
tree | e69f9edd2fe8d312e0ee4d0f7fb3adda35d88d7e /roles/streaming/dolmetsch-raspi/templates/dolmetschctl.service.j2 | |
parent | move some legacy stuff to graveyard (diff) |
move dolmetsch-raspi to generic folder
Diffstat (limited to 'roles/streaming/dolmetsch-raspi/templates/dolmetschctl.service.j2')
-rw-r--r-- | roles/streaming/dolmetsch-raspi/templates/dolmetschctl.service.j2 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/streaming/dolmetsch-raspi/templates/dolmetschctl.service.j2 b/roles/streaming/dolmetsch-raspi/templates/dolmetschctl.service.j2 new file mode 100644 index 00000000..cd97cc3e --- /dev/null +++ b/roles/streaming/dolmetsch-raspi/templates/dolmetschctl.service.j2 @@ -0,0 +1,22 @@ +[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 |