Merge pull request #4554 from joshuaboniface/fix-restart
Run explicit service start if restart failed
This commit is contained in:
commit
4f96e2f256
6
debian/bin/restart.sh
vendored
6
debian/bin/restart.sh
vendored
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user