bigbluebutton-Github/build/packages-template/bbb-livekit/livekit-server.service
Daniel Molkentin 6799809b6b Add Livekit package
For now, we will not rebuild livekit, but rather use the precompiled
project binaries.

As per BBB convention, this package provides an immutable default
configuration file which gets merged with a user-modifiable file
in /etc/bigbluebutton.
2023-11-28 13:25:50 +01:00

21 lines
684 B
Desktop File

[Unit]
Description=LiveKit Server
Wants=redis-server.service
After=syslog.target network.target freeswitch.service redis-server.service
PartOf=bigbluebutton.target
[Service]
Type=exec
ExecStartPre=-bash -c "umask 077; yq eval-all '. as $item ireduce ({}; . * $item )' /usr/share/livekit-server/livekit.yaml /etc/bigbluebutton/livekit.yaml > ${RUNTIME_DIRECTORY}/livekit.yaml"
ExecStart=/usr/bin/livekit-server --config "${RUNTIME_DIRECTORY}/livekit.yaml"
ExecStopPost=rm ${RUNTIME_DIRECTORY}/livekit.yaml
RuntimeDirectory=livekit-server
Restart=always
User=bigbluebutton
Group=bigbluebutton
CPUSchedulingPolicy=fifo
Nice=19
[Install]
WantedBy=multi-user.target bigbluebutton.target