aboutsummaryrefslogtreecommitdiff
path: root/debian
AgeCommit message (Collapse)Author
2022-03-19Add comment about sysv optionsJoshua M. Boniface
2022-03-15Add SuccessExitStatus for exit 143Joshua M. Boniface
Fixes #3182
2021-12-24Merge branch 'master' into unharden-for-lxcCody Robibero
2021-12-18Remove ProtectClock for hardware encodingnlog
2021-12-12Unify and standardize unit files between deb/rpmJoshua M. Boniface
Ensures that the RPM service unit has all the tweaks from the Deb service unit, and some in the other direction too.
2021-12-12Revert some hardening that breaks LXCJoshua M. Boniface
For each of these, we should be OK since we run as an unprivileged user anyways.
2021-12-06add more hardening to systemd servicematthiasdv
2021-11-04Add a bit of hardening to the systemd serviceJulien Voisin
Tested in an unprivileged lxc container, so it shouldn't™ break anything.
2021-09-25Fix builds for dotnet6 (#6595)Cody Robibero
* Target net6.0 * Use new Enum.TryParse(ReadOnlySpan<char>) overload * Replace RNGCryptoServiceProvider with RandomNumberGenerator * ci - target net6.0 (#6594) * Update deployment for dotnet6 * Use generic 6.0.x preview for CI * Update direct dotnet download links Co-authored-by: Bond_009 <bond.009@outlook.com>
2021-09-06Merge pull request #4615 from strugee/fix-restart.shClaus Vium
2021-08-18Merge branch 'master' into patch-2Joshua M. Boniface
2021-08-18Merge pull request #5606 from lmnotran/feature/delay-service-startJoshua M. Boniface
Delay starting service until after network is online
2021-06-21debian: Add maxcpucount option to override_dh_auto_build. Fix #5234Cédric Bellegarde
2021-05-06Respect configured JELLYFIN_USER in Debian's postinstTobias Krönke
In my setup I configured a different user. But updates keep "stealing" file permissions for my `$PROGRAMDATA $CONFIGDATA $LOGDATA $CACHEDATA` directories.
2021-04-11Enable Workstation GC modecvium
2021-03-24Delay starting services until after network is onlineMason Tran
2020-12-04Bump version to 10.8.0 for next releaseJoshua M. Boniface
2020-12-04Use a service unit, not a scope unit, to restartAJ Jordan
Reportedly `systemd-run --scope` still got killed by the service manager; see #4615. The suspected cause is that `scope` units are run by the `systemd-run` process itself and inherit the caller's execution environment (see systemd-run(1)). To fix this, we use a systemd `service` unit instead, which is run and managed by PID 1 - hopefully this will isolate us sufficiently so that we don't get terminated along with `jellyfin.service`.
2020-12-04Use systemd-run(1) in restart.shAJ Jordan
systemd-run(1) runs `systemctl restart` in an isolated systemd unit that is not subject to process termination as jellyfin.service is shut down. We adjust the sudoers configuration for this new usage, removing the old config, since restart.sh is the only user of the sudoers policy. Additionally we change `systemctl start` to `systemctl restart` since there was a race condition where jellyfin.service was not fully stopped by the time this ran, so `systemctl start` became a noop. `systemctl restart` on the other hand works whether jellyfin.service is stopped or not. The at(1) hack (and the usage of `start` instead of `restart`) is left in for other init systems since I cannot test on those systems, and because I don't know of any systemd-run(1) equivalent (although it may be a non-issue since alternate init systems do not keep track of daemon children nearly as aggressively as systemd does).
2020-11-29Add sudo to package dependenciesAJ Jordan
It's used in the restart.sh script. For Debian, this is a Recommends because virtually everyone will need this (default APT policy is to install recommended packages so this works ok), but technically you can configure the server to run as root and then you wouldn't need it. For Fedora... frankly I got confused by their Weak Dependencies etc. so I just made it a hard dependency.
2020-11-29Don't restart with sudo(8) if it's not availableAJ Jordan
Some environments, like system containers, have no reason to have sudo(8) installed. In these environments restart.sh will silently fail because /usr/bin/sudo does not exist to execute, so test that sudo exists and don't try to use it otherwise. Note also that hardcoding sudo's path is wrong: it can be installed in other places. On FreeBSD, for example, it is /usr/local/bin/sudo when installed from ports.
2020-11-29Remove useless which(1) calls in restart.shAJ Jordan
at(1) runs commandlines with /bin/sh anyway, which resolves paths. No need to do it ourselves.
2020-11-29Fix restart.sh to look at what's actually bootedAJ Jordan
The old code was wrong because e.g. systemd can be *installed* on the system, but not actually used as PID1. In that case we would pick `systemctl`, but it wouldn't actually work because PID1 was some other init system.
2020-11-24Use consistent styleCromefire_
2020-11-24Removed bash style varsCromefire_
2020-11-23Update debian/conf/jellyfinCromefire_
Co-authored-by: Odd Stråbø <oddstr13@openshell.no>
2020-11-22Go back to at with lower sleep and startJoshua M. Boniface
2020-11-22Remove the `at now` hackJoshua M. Boniface
2020-11-22Run explicit service start if restart failedJoshua M. Boniface
Should solve the occasional bugs with the restart in the WebUI. Sometimes the service stops and then doesn't start again; this will run an explicit start action afterwards. If this doesn't fix it I'm certain there would be more tweaking that can be done.
2020-11-15Upgrade all netcore3.1 to net5.0crobibero
2020-10-31Remove jellyfin-ffmpeg dep from server packageJoshua M. Boniface
Being added to the metapackage instead.
2020-10-17Merge pull request #3690 from MichaIng/patch-1Joshua M. Boniface
Fix left /usr/bin/jellyfin symlink on removal and typo
2020-09-04Remove GenerateDocumentationFilecrobibero
2020-08-29include xml docs when publishingcrobibero
2020-08-28Added JELLYFIN_ADDITIONAL_OPTS to default fileCromefire_
2020-08-28Added additional opts to service fileCromefire_
2020-07-27Bump master version to 10.7.0 for next releaseJoshua M. Boniface
2020-07-24Fix left /usr/bin/jellyfin symlink on removal and typoMichaIng
After removal of the symlink target file "/usr/lib/jellyfin/bin/jellyfin", file existence check on the symlink "[[ -f /usr/bin/jellyfin ]]" returns false. As a result the symlink is left in place on package purge. The correct check would be "[[ -L /usr/bin/jellyfin ]]", but since it could be a file in cases, e.g. manual fix on file systems with no symlink support or for any other reason, it is easiest to use "rm -f" to assure that it is removed in both cases and not return false even if it does not exist at all. Additionally this fixes a typo on upstart script check. Signed-off-by: MichaIng <micha@dietpi.com>
2020-07-23fix typo in debian's config fileFernando Fernández
2020-07-19Readd sed'd out dotnet-sdk dependencyJoshua M. Boniface
2020-07-19Remove the old Emby conflictsJoshua M. Boniface
It's been long enough that this is no longer an issue. We still conflict on the ports 8096 and 8190, but this will simply result in a failure to start; allow users to get themselves into that situation if they wish.
2020-07-19Fix bad dependency handling in 10.6.0-1Joshua M. Boniface
Fixes the incorrect dependency handling from 10.6.0, which was missing the Replaces and Breaks entries on jellyfin-server. Thus apt would complain about /etc/default/jellyfin being in two packages and fail to upgrade. With this configuration, I've verified that apt now handles this situation properly.
2020-04-29Add Web integration option in default service confJoshua M. Boniface
2020-04-09Specify a version for jellyfin-ffmpeg dependency in .debhauntingEcho
Lower versions cause #2126 in Jellyfin >= 10.4.3
2020-04-09Fix missing restart scriptJoshua M. Boniface
2020-04-09Use jellyfin.org everywhereJoshua M. Boniface
2020-03-30Add Debian/Ubuntu metapackage equivs fileJoshua M. Boniface
2020-03-23Update package description for DebianJoshua M. Boniface
2020-03-23Remove web building, rename, bump versionJoshua M. Boniface
2020-03-22Move Debian folder to root of repoJoshua M. Boniface