mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4615] [MERGED] Improve restart.sh #10194
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4615
Author: @strugee
Created: 11/29/2020
Status: ✅ Merged
Merged: 9/6/2021
Merged by: @cvium
Base:
master← Head:fix-restart.sh📝 Commits (6)
a4e1732Fix restart.sh to look at what's actually bootedce82932Remove useless which(1) calls in restart.sh2911dfcDon't restart with sudo(8) if it's not availableb528816Add sudo to package dependenciesd251c70Use systemd-run(1) in restart.shbab3891Use a service unit, not a scope unit, to restart📊 Changes
6 files changed (+68 additions, -29 deletions)
View changed files
📝
debian/bin/restart.sh(+30 -10)📝
debian/conf/jellyfin-sudoers(+3 -3)📝
debian/control(+1 -1)📝
fedora/jellyfin.spec(+1 -1)📝
fedora/jellyfin.sudoers(+3 -4)📝
fedora/restart.sh(+30 -10)📄 Description
Changes
Fix
restart.shto be more robust. In particular:sudois installed (there is also code in there to handlesudonot being installed, for obscure running-as-root configurations - I wrote it before I realized I was being dumb and wasn't actually running as root, but it seemed like since it was already written it might as well stay in the PR)| at nowhack for systemd and fix some race conditionsI've split up the changes into individual commits, all of which have an extended description, so I won't repeat what they already say here.
I did test these changes in my production Debian system. I then copied the changes to the Fedora configs, but I did not test those since I didn't want to spin up a Fedora box and deploy Jellyfin from scratch. But they should apply equally well to that platform.
Issues
None that I found, but see also #4554; cc @joshuaboniface
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.