ops: persist livekit-server and camera fleet as systemd 24/7 units
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
[Unit]
|
||||
Description=Publish C920 cameras (speechbrain audio) to LiveKit
|
||||
After=network-online.target sound.target
|
||||
After=network-online.target sound.target livekit-server.service
|
||||
Wants=network-online.target
|
||||
Requires=livekit-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/fdenkena/livekit-cameras
|
||||
ExecStart=/home/fdenkena/livekit-cameras/.venv/bin/python /home/fdenkena/livekit-cameras/run.py
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
TimeoutStopSec=30
|
||||
KillMode=control-group
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
Environment=LIVEKIT_URL=ws://127.0.0.1:7880
|
||||
Environment=ENHANCE_MODE=force
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=LiveKit server for the C920 camera fleet
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/livekit-server --config /home/fdenkena/livekit-cameras/deploy/livekit-server.yaml
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,13 @@
|
||||
port: 7880
|
||||
bind_addresses:
|
||||
- 127.0.0.1
|
||||
- 10.200.0.20
|
||||
keys:
|
||||
devkey: devsecret
|
||||
rtc:
|
||||
tcp_port: 7881
|
||||
udp_port: 7882
|
||||
use_external_ip: false
|
||||
node_ip: 10.200.0.20
|
||||
logging:
|
||||
level: info
|
||||
Reference in New Issue
Block a user