mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-08 02:34:19 -04:00
Use which to find the service binary path
This commit is contained in:
parent
a629f209b9
commit
62105c249f
@ -24,10 +24,10 @@ 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 /usr/bin/systemctl restart jellyfin" | at now
|
echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin" | at now
|
||||||
;;
|
;;
|
||||||
'service')
|
'service')
|
||||||
echo "sleep 2; /usr/bin/sudo /sbin/service jellyfin restart" | at now
|
echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart" | at now
|
||||||
;;
|
;;
|
||||||
'sysv')
|
'sysv')
|
||||||
echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart" | at now
|
echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart" | at now
|
||||||
|
@ -24,10 +24,10 @@ 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 /usr/bin/systemctl restart jellyfin" | at now
|
echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin" | at now
|
||||||
;;
|
;;
|
||||||
'service')
|
'service')
|
||||||
echo "sleep 2; /usr/bin/sudo /sbin/service jellyfin restart" | at now
|
echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart" | at now
|
||||||
;;
|
;;
|
||||||
'sysv')
|
'sysv')
|
||||||
echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart" | at now
|
echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart" | at now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user