mirror of https://github.com/jellyfin/jellyfin.git
Go back to at with lower sleep and start
This commit is contained in:
parent
97665c9478
commit
6de79e03a2
|
@ -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')
|
||||||
sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin
|
echo "sleep 0.5; /usr/bin/sudo $( which systemctl ) start jellyfin" | at now
|
||||||
;;
|
;;
|
||||||
'service')
|
'service')
|
||||||
sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start
|
echo "sleep 0.5; /usr/bin/sudo $( which service ) jellyfin start" | at now
|
||||||
;;
|
;;
|
||||||
'sysv')
|
'sysv')
|
||||||
sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start
|
echo "sleep 0.5; /usr/bin/sudo /etc/init.d/jellyfin start" | at now
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -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')
|
||||||
sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin
|
echo "sleep 0.5; /usr/bin/sudo $( which systemctl ) start jellyfin" | at now
|
||||||
;;
|
;;
|
||||||
'service')
|
'service')
|
||||||
sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start
|
echo "sleep 0.5; /usr/bin/sudo $( which service ) jellyfin start" | at now
|
||||||
;;
|
;;
|
||||||
'sysv')
|
'sysv')
|
||||||
sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start
|
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