Files
Piik/deploy/systemd/livekit.service.example
T

40 lines
914 B
Plaintext

[Unit]
Description=LiveKit single-node SFU fallback for Screener
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=livekit
Group=livekit
ExecStartPre=/usr/bin/test -r /etc/livekit/livekit.yaml
ExecStartPre=/usr/bin/test -r /etc/livekit/keys.yaml
ExecStart=/usr/local/bin/livekit-server --config /etc/livekit/livekit.yaml
Restart=on-failure
RestartSec=3s
TimeoutStopSec=20s
UMask=0077
LimitNOFILE=65535
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectClock=true
ProtectHostname=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
LockPersonality=true
CapabilityBoundingSet=
SystemCallArchitectures=native
[Install]
WantedBy=multi-user.target