summaryrefslogtreecommitdiff
path: root/configs/os
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-24 05:03:45 +0300
committerDevaev Maxim <[email protected]>2021-05-24 05:08:53 +0300
commit19a68887e4083755af9f3edcb59c69e89b34b6f7 (patch)
treeeee102f2cf1312121d8af606e0bdeabb507fb236 /configs/os
parent9cead6203295e55c25b9a011a6da93509d05e79f (diff)
janus runner draft
Diffstat (limited to 'configs/os')
-rw-r--r--configs/os/services/kvmd-janus-norunner.service19
-rw-r--r--configs/os/services/kvmd-janus.service16
2 files changed, 30 insertions, 5 deletions
diff --git a/configs/os/services/kvmd-janus-norunner.service b/configs/os/services/kvmd-janus-norunner.service
new file mode 100644
index 00000000..9674b3d8
--- /dev/null
+++ b/configs/os/services/kvmd-janus-norunner.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Pi-KVM - Janus WebRTC Gateway (No Runner)
+After=network.target network-online.target nss-lookup.target kvmd.service
+
+[Service]
+User=kvmd-janus
+Group=kvmd-janus
+Type=simple
+Restart=always
+RestartSec=3
+AmbientCapabilities=CAP_NET_RAW
+LimitNOFILE=65536
+
+ExecStart=/usr/bin/janus --disable-colors --plugins-folder=/usr/lib/ustreamer/janus --configs-folder=/etc/kvmd/janus
+TimeoutStopSec=5
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target
diff --git a/configs/os/services/kvmd-janus.service b/configs/os/services/kvmd-janus.service
index 9a154d29..5f4b44a8 100644
--- a/configs/os/services/kvmd-janus.service
+++ b/configs/os/services/kvmd-janus.service
@@ -1,13 +1,19 @@
[Unit]
-Description=Pi-KVM - Janus WebRTC Gateway (stub)
+Description=Pi-KVM - Janus WebRTC Gateway
After=network.target network-online.target nss-lookup.target kvmd.service
[Service]
-Type=oneshot
-ExecStart=/bin/true
-ExecStop=/bin/true
-RemainAfterExit=true
+User=kvmd-janus
+Group=kvmd-janus
+Type=simple
+Restart=always
+RestartSec=3
+AmbientCapabilities=CAP_NET_RAW
LimitNOFILE=65536
+ExecStart=/usr/bin/kvmd-janus --run
+TimeoutStopSec=5
+KillMode=mixed
+
[Install]
WantedBy=multi-user.target