diff options
author | Uruk <uruknarb20@gmail.com> | 2024-02-23 18:39:40 +0100 |
---|---|---|
committer | Uruk <uruknarb20@gmail.com> | 2024-02-23 18:39:40 +0100 |
commit | 32002b2ed79d9461e83460d18fc422d83f2f7742 (patch) | |
tree | 4e38113afed2d057ee1d9140d77fee9d44ce1000 /debian | |
parent | Apply suggestions (diff) | |
download | jellyfin-packaging-32002b2ed79d9461e83460d18fc422d83f2f7742.tar.gz jellyfin-packaging-32002b2ed79d9461e83460d18fc422d83f2f7742.tar.bz2 jellyfin-packaging-32002b2ed79d9461e83460d18fc422d83f2f7742.zip |
Apply suggestions
Diffstat (limited to 'debian')
-rw-r--r-- | debian/conf/jellyfin.init | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/debian/conf/jellyfin.init b/debian/conf/jellyfin.init index 92864a9..02c15ad 100644 --- a/debian/conf/jellyfin.init +++ b/debian/conf/jellyfin.init @@ -19,14 +19,13 @@ fi . /lib/lsb/init-functions -JELLYFIN_HOME="/etc/default/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 --chdir $JELLYFIN_HOME --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_DATA_DIR --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 @@ -45,7 +44,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 --chdir $JELLYFIN_HOME --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_DATA_DIR --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 |