aboutsummaryrefslogtreecommitdiff
path: root/fedora/restart.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fedora/restart.sh')
-rwxr-xr-xfedora/restart.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/fedora/restart.sh b/fedora/restart.sh
index 6aea24ee4..be5ca2c8b 100755
--- a/fedora/restart.sh
+++ b/fedora/restart.sh
@@ -43,7 +43,8 @@ fi
echo "Detected service control platform '$cmd'; using it to restart Jellyfin..."
case $cmd in
'systemctl')
- echo "sleep 0.5; $sudo_command systemctl start jellyfin" | at now
+ # Without systemd-run here, `jellyfin.service`'s shutdown terminates this process too
+ $sudo_command systemd-run --scope systemctl restart jellyfin
;;
'service')
echo "sleep 0.5; $sudo_command service jellyfin start" | at now