ops: persist livekit-server and camera fleet as systemd 24/7 units

This commit is contained in:
Hermes
2026-08-28 05:41:18 +00:00
parent 30b128bc9e
commit b5a2fe6440
4 changed files with 42 additions and 10 deletions
+6 -2
View File
@@ -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