aboutsummaryrefslogtreecommitdiff
path: root/debian/conf
diff options
context:
space:
mode:
authorUruk <uruknarb20@gmail.com>2024-02-23 17:52:10 +0100
committerUruk <uruknarb20@gmail.com>2024-02-23 17:52:10 +0100
commit104f91e697d8c5c4bb71ce995c2b95ab75d84dae (patch)
tree28c41531064d78e3364c30c88b4ed368d2560ed1 /debian/conf
parentUpdate repository script to use BASEDIR (diff)
downloadjellyfin-packaging-104f91e697d8c5c4bb71ce995c2b95ab75d84dae.tar.gz
jellyfin-packaging-104f91e697d8c5c4bb71ce995c2b95ab75d84dae.tar.bz2
jellyfin-packaging-104f91e697d8c5c4bb71ce995c2b95ab75d84dae.zip
Refactor jellyfin-packaging
- Fix typo in the README - Added -f to rm from fix https://github.com/jellyfin/jellyfin/pull/11008 - Apply fix from https://github.com/jellyfin/jellyfin/pull/10763 - Refactor Docker for better syntax and readability - Update Intel runtime drivers to 24.05.28454.6 - Added possible miss line 159 docker/Dockerfile : "--ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg" - Removed wget in cleanup
Diffstat (limited to 'debian/conf')
-rw-r--r--debian/conf/jellyfin.init5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/conf/jellyfin.init b/debian/conf/jellyfin.init
index 784536d..72cf2e2 100644
--- a/debian/conf/jellyfin.init
+++ b/debian/conf/jellyfin.init
@@ -19,13 +19,14 @@ fi
. /lib/lsb/init-functions
+JELLYFIN_HOME="/var/lib/jellyfin/"
PIDFILE="/run/jellyfin.pid"
case "$1" in
start)
log_daemon_msg "Starting Jellyfin Media Server" "jellyfin" || true
- if start-stop-daemon --start --quiet --oknodo --background --pidfile $PIDFILE --make-pidfile --user $JELLYFIN_USER --chuid $JELLYFIN_USER --exec /usr/bin/jellyfin -- $JELLYFIN_ARGS; then
+ if start-stop-daemon --start --quiet --oknodo --background --chdir $JELLYFIN_HOME --pidfile $PIDFILE --make-pidfile --user $JELLYFIN_USER --chuid $JELLYFIN_USER --exec /usr/bin/jellyfin -- $JELLYFIN_ARGS; then
log_end_msg 0 || true
else
log_end_msg 1 || true
@@ -44,7 +45,7 @@ case "$1" in
restart)
log_daemon_msg "Restarting Jellyfin Media Server" "jellyfin" || true
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE --remove-pidfile
- if start-stop-daemon --start --quiet --oknodo --background --pidfile $PIDFILE --make-pidfile --user $JELLYFIN_USER --chuid $JELLYFIN_USER --exec /usr/bin/jellyfin -- $JELLYFIN_ARGS; then
+ if start-stop-daemon --start --quiet --oknodo --background --chdir $JELLYFIN_HOME --pidfile $PIDFILE --make-pidfile --user $JELLYFIN_USER --chuid $JELLYFIN_USER --exec /usr/bin/jellyfin -- $JELLYFIN_ARGS; then
log_end_msg 0 || true
else
log_end_msg 1 || true
bgstack15