浏览代码

Merge pull request #4554 from joshuaboniface/fix-restart

Run explicit service start if restart failed
Bill Thornton 4 年之前
父节点
当前提交
4f96e2f256
共有 3 个文件被更改,包括 7 次插入7 次删除
  1. 3 3
      debian/bin/restart.sh
  2. 1 1
      fedora/jellyfin.spec
  3. 3 3
      fedora/restart.sh

+ 3 - 3
debian/bin/restart.sh

@@ -24,13 +24,13 @@ cmd="$( get_service_command )"
 echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
 echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
 case $cmd in
 case $cmd in
     'systemctl')
     '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')
     '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')
     '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
 esac
 exit 0
 exit 0

+ 1 - 1
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
 Summary:        The Free Software Media System Server backend
 Requires(pre):  shadow-utils
 Requires(pre):  shadow-utils
 Requires:       ffmpeg
 Requires:       ffmpeg
-Requires:       libcurl, fontconfig, freetype, openssl, glibc libicu
+Requires:       libcurl, fontconfig, freetype, openssl, glibc, libicu, at
 
 
 %description server
 %description server
 The Jellyfin media server backend.
 The Jellyfin media server backend.

+ 3 - 3
fedora/restart.sh

@@ -24,13 +24,13 @@ cmd="$( get_service_command )"
 echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
 echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
 case $cmd in
 case $cmd in
     'systemctl')
     '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')
     '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')
     '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
 esac
 exit 0
 exit 0