mirror of
https://github.com/linuxserver/docker-jellyfin.git
synced 2026-01-23 10:16:22 +00:00
Move check to file to match master
This commit is contained in:
parent
53f42d17ce
commit
72c8f9a3b4
4 changed files with 16 additions and 5 deletions
|
|
@ -26,7 +26,8 @@ RUN \
|
|||
at \
|
||||
jellyfin-server=${JELLYFIN_RELEASE} \
|
||||
jellyfin-ffmpeg6 \
|
||||
mesa-va-drivers && \
|
||||
mesa-va-drivers \
|
||||
xmlstarlet && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
|
|
@ -34,7 +35,7 @@ RUN \
|
|||
/var/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 8096 8920
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ RUN \
|
|||
jellyfin-ffmpeg6 \
|
||||
libomxil-bellagio0 \
|
||||
libomxil-bellagio-bin \
|
||||
libraspberrypi0 && \
|
||||
libraspberrypi0 \
|
||||
xmlstarlet && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
|
|
@ -36,7 +37,7 @@ RUN \
|
|||
/var/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 8096 8920
|
||||
|
|
|
|||
9
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/data/check
Executable file
9
root/etc/s6-overlay/s6-rc.d/svc-jellyfin/data/check
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
PORT=$(xmlstarlet sel -T -t -v /NetworkConfiguration/HttpServerPortNumber /config/network.xml)
|
||||
|
||||
if [[ $(curl -sL "http://localhost:${PORT:-8096}/health" 2>/dev/null) = "Healthy" ]]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -13,6 +13,6 @@ export \
|
|||
JELLYFIN_WEB_DIR="/usr/share/jellyfin/web"
|
||||
|
||||
exec \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 -c "curl -s --output /dev/null http://localhost:8096/health" \
|
||||
s6-notifyoncheck -d -n 300 -w 1000 \
|
||||
s6-setuidgid abc /usr/bin/jellyfin \
|
||||
--ffmpeg="${FFMPEG_PATH}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue