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 /fedora | |
| parent | b187fe6fcbb53a2d81091eca5747216078cad674 (diff) | |
| parent | 91dd95faa3d3cd108c2cfc7a26af792f37e937be (diff) | |
Merge pull request #4554 from joshuaboniface/fix-restart
Run explicit service start if restart failed
Diffstat (limited to 'fedora')
| -rw-r--r-- | fedora/jellyfin.spec | 2 | ||||
| -rwxr-xr-x | fedora/restart.sh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fedora/jellyfin.spec b/fedora/jellyfin.spec index 4f4a30187..0ab1e410a 100644 --- a/fedora/jellyfin.spec +++ b/fedora/jellyfin.spec @@ -40,7 +40,7 @@ Jellyfin is a free software media system that puts you in control of managing an Summary: The Free Software Media System Server backend Requires(pre): shadow-utils Requires: ffmpeg -Requires: libcurl, fontconfig, freetype, openssl, glibc libicu +Requires: libcurl, fontconfig, freetype, openssl, glibc, libicu, at %description server The Jellyfin media server backend. diff --git a/fedora/restart.sh b/fedora/restart.sh index 9e53efecd..34fce0670 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 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 |
