Skip to content

Commit f70926c

Browse files
committed
Check ffmepg path, use proper health endpoint
1 parent bdc4079 commit f70926c

File tree

1 file changed

+6
-2
lines changed
  • root/etc/s6-overlay/s6-rc.d/svc-jellyfin

1 file changed

+6
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4+
if [[ -z "${FFMPEG_PATH}" ]] || [[ ! -f "${FFMPEG_PATH}" ]]; then
5+
FFMPEG_PATH=/usr/lib/jellyfin-ffmpeg/ffmpeg
6+
fi
7+
48
export \
59
JELLYFIN_DATA_DIR="/config/data" \
610
JELLYFIN_CONFIG_DIR="/config" \
@@ -9,6 +13,6 @@ export \
913
JELLYFIN_WEB_DIR="/usr/share/jellyfin/web"
1014

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

0 commit comments

Comments
 (0)