jibri: check for chrome bin before pre-warm (#1757)

pull/1731/head^2
Aaron van Meerten 8 months ago committed by GitHub
parent 648612f1bc
commit 140db223e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      jibri/rootfs/etc/services.d/40-jibri/run

@ -4,7 +4,9 @@
HOME=/home/jibri
DAEMON=/opt/jitsi/jibri/launch.sh
CHROME_BIN_PATH="$(which google-chrome)"
[ $? -ne 0 ] && CHROME_BIN_PATH="$(which chromium)"
# pre-warm google chrome before jibri launches to ensure fast chrome launch during recordings
s6-setuidgid jibri /usr/bin/google-chrome --timeout=1000 --headless about:blank
[ -n "$CHROME_BIN_PATH" ] && s6-setuidgid jibri $CHROME_BIN_PATH --timeout=1000 --headless about:blank
exec s6-setuidgid jibri /bin/bash -c "exec $DAEMON"

Loading…
Cancel
Save