diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-11-22 17:19:39 -0500 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-11-22 17:19:39 -0500 |
| commit | 97665c947865973936863edc21717c1ae5df6193 (patch) | |
| tree | 9fc331e7a627ef10a36ebfc089d769d183e32d72 /debian | |
| parent | 1079ddb46cceea1af45d5e00cdaa4b92e2a306f1 (diff) | |
Remove the `at now` hack
Diffstat (limited to 'debian')
| -rwxr-xr-x | debian/bin/restart.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/bin/restart.sh b/debian/bin/restart.sh index e499bf336..4436ea991 100755 --- a/debian/bin/restart.sh +++ b/debian/bin/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 || /usr/bin/sudo $( which systemctl ) start jellyfin" | at now + sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin || /usr/bin/sudo $( which systemctl ) start jellyfin ;; 'service') - echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start" | at now + sleep 2; /usr/bin/sudo $( which service ) jellyfin restart || /usr/bin/sudo $( which service ) jellyfin start ;; 'sysv') - echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start" | at now + sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart || /usr/bin/sudo /etc/init.d/jellyfin start ;; esac exit 0 |
