aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorBill Thornton <thornbill@users.noreply.github.com>2020-11-23 14:15:18 -0500
committerGitHub <noreply@github.com>2020-11-23 14:15:18 -0500
commit4f96e2f256bbfc0a3be9c7763d37c462c1eaa6dc (patch)
tree8da89f2f0423626209fb9e0560528dc39a98e5ef /debian
parentb187fe6fcbb53a2d81091eca5747216078cad674 (diff)
parent91dd95faa3d3cd108c2cfc7a26af792f37e937be (diff)
Merge pull request #4554 from joshuaboniface/fix-restart
Run explicit service start if restart failed
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/bin/restart.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/bin/restart.sh b/debian/bin/restart.sh
index 9b64b6d728..34fce06708 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 0.5; /usr/bin/sudo $( which systemctl ) start jellyfin" | at now
;;
'service')
- echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart" | at now
+ echo "sleep 0.5; /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 0.5; /usr/bin/sudo /etc/init.d/jellyfin start" | at now
;;
esac
exit 0