Skip to content

Commit

Permalink
Check ffmepg path, use proper health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed May 18, 2024
1 parent bdc4079 commit f70926c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/svc-jellyfin/run
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

if [[ -z "${FFMPEG_PATH}" ]] || [[ ! -f "${FFMPEG_PATH}" ]]; then
FFMPEG_PATH=/usr/lib/jellyfin-ffmpeg/ffmpeg
fi

export \
JELLYFIN_DATA_DIR="/config/data" \
JELLYFIN_CONFIG_DIR="/config" \
Expand All @@ -9,6 +13,6 @@ export \
JELLYFIN_WEB_DIR="/usr/share/jellyfin/web"

exec \
s6-notifyoncheck -d -n 300 -w 1000 \
s6-notifyoncheck -d -n 300 -w 1000 -c "curl -s --output /dev/null http://localhost:8096/health" \
s6-setuidgid abc /usr/bin/jellyfin \
--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
--ffmpeg="${FFMPEG_PATH}"

0 comments on commit f70926c

Please sign in to comment.