diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-03-22 16:00:52 -0400 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2020-03-22 16:00:52 -0400 |
| commit | 28f7df652015013ff5cedb10971fb69c8e41d2b1 (patch) | |
| tree | 24bafd2955da5fd50e7b1b608719d3e10dcef3c7 /deployment/debian-package-x64/pkg-src/bin | |
| parent | 2afbbba3f874884e7f249bacb9de458244242380 (diff) | |
Move all old deployment stuff to a new folder
Diffstat (limited to 'deployment/debian-package-x64/pkg-src/bin')
| -rwxr-xr-x | deployment/debian-package-x64/pkg-src/bin/restart.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/deployment/debian-package-x64/pkg-src/bin/restart.sh b/deployment/debian-package-x64/pkg-src/bin/restart.sh deleted file mode 100755 index 9b64b6d72..000000000 --- a/deployment/debian-package-x64/pkg-src/bin/restart.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -# restart.sh - Jellyfin server restart script -# Part of the Jellyfin project (https://github.com/jellyfin) -# -# This script restarts the Jellyfin daemon on Linux when using -# the Restart button on the admin dashboard. It supports the -# systemctl, service, and traditional /etc/init.d (sysv) restart -# methods, chosen automatically by which one is found first (in -# that order). -# -# This script is used by the Debian/Ubuntu/Fedora/CentOS packages. - -get_service_command() { - for command in systemctl service; do - if which $command &>/dev/null; then - echo $command && return - fi - done - echo "sysv" -} - -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" | at now - ;; - 'service') - echo "sleep 2; /usr/bin/sudo $( which service ) jellyfin restart" | at now - ;; - 'sysv') - echo "sleep 2; /usr/bin/sudo /etc/init.d/jellyfin restart" | at now - ;; -esac -exit 0 |
