diff options
| author | Bill Thornton <thornbill@users.noreply.github.com> | 2020-11-23 14:15:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-23 14:15:18 -0500 |
| commit | 4f96e2f256bbfc0a3be9c7763d37c462c1eaa6dc (patch) | |
| tree | 8da89f2f0423626209fb9e0560528dc39a98e5ef /debian | |
| parent | b187fe6fcbb53a2d81091eca5747216078cad674 (diff) | |
| parent | 91dd95faa3d3cd108c2cfc7a26af792f37e937be (diff) | |
Merge pull request #4554 from joshuaboniface/fix-restart
Run explicit service start if restart failed
Diffstat (limited to 'debian')
| -rwxr-xr-x | debian/bin/restart.sh | 6 |
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 |
