aboutsummaryrefslogtreecommitdiff
path: root/debian/conf
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-02-23 12:41:22 -0500
committerGitHub <noreply@github.com>2024-02-23 12:41:22 -0500
commit0631c2d5546f49922dff17143acc4d949fae0e86 (patch)
tree4e38113afed2d057ee1d9140d77fee9d44ce1000 /debian/conf
parentUpdate repository script to use BASEDIR (diff)
parentApply suggestions (diff)
downloadjellyfin-packaging-0631c2d5546f49922dff17143acc4d949fae0e86.tar.gz
jellyfin-packaging-0631c2d5546f49922dff17143acc4d949fae0e86.tar.bz2
jellyfin-packaging-0631c2d5546f49922dff17143acc4d949fae0e86.zip
Merge pull request #1 from Gauvino/master
Refactor jellyfin-packaging
Diffstat (limited to 'debian/conf')
-rw-r--r--debian/conf/jellyfin.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/conf/jellyfin.init b/debian/conf/jellyfin.init
index 784536d..02c15ad 100644
--- a/debian/conf/jellyfin.init
+++ b/debian/conf/jellyfin.init
@@ -25,7 +25,7 @@ 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_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
@@ -44,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 --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
bgstack15