The Free Software Media System - Server Backend & API
Run explicit service start if restart failed
Joshua M. Boniface1079ddb46cce
diff --git a/debian/bin/restart.sh b/debian/bin/restart.shindex 9b64b6d728..e499bf3369 100755--- a/debian/bin/restart.sh+++ b/debian/bin/restart.sh@@ -24,13 +24,13 @@ cmd="$( get_service_command )"echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."case $cmd in'systemctl')- echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin" | at now+ echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin" | at now;;'service')- echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart" | at now+ echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start" | at now;;'sysv')- echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart" | at now+ echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start" | at now;;esacexit 0diff --git a/fedora/restart.sh b/fedora/restart.shindex 9e53efecd0..e499bf3369 100755--- a/fedora/restart.sh+++ b/fedora/restart.sh@@ -24,13 +24,13 @@ cmd="$( get_service_command )"echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."case $cmd in'systemctl')- echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin" | at now+ echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin" | at now;;'service')- echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart" | at now+ echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start" | at now;;'sysv')- echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart" | at now+ echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start" | at now;;esacexit 0