Commit Graph

28 Commits

Author SHA1 Message Date
Shadowghost 9d4352789d Backport pull request #10454 from jellyfin/release-10.8.z
Add MALLOC_TRIM_THRESHOLD_ to default ENV

Original-merge: 9d565bbb83

Merged-by: Joshua M. Boniface <joshua@boniface.me>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
2023-11-06 15:17:47 -05:00
Hugues Larrive 0bf92186a5 Add program directories to JELLYFIN_ARGS for sysvinit compatibility 2023-07-25 17:37:47 +02:00
Dennis M. Pöpperl 2abd4c0c9c Remove restart.sh dependencies from packaging 2023-01-23 20:02:41 +01:00
Shadowghost 6292e0127d Remove restart.sh from packaging 2023-01-19 10:32:11 +01:00
Joshua Boniface 28594ececa Backport pull request #8038 from jellyfin/release-10.8.z
Remove mount and unmount permissions for jellyfin group from sudoers

Authored-by: Shadowghost <Ghost_of_Stone@web.de>

Merged-by: Claus Vium <cvium@users.noreply.github.com>

Original-merge: 9cebdfdec0
2022-06-30 12:15:07 -04:00
Joshua M. Boniface 669855e686 Merge pull request #7887 from joshuaboniface/fix-restart.sh
(cherry picked from commit 294ab0757e)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
2022-06-29 01:26:14 -04:00
Joshua M. Boniface 93f569d286 Add comment about sysv options 2022-03-19 12:27:48 -04:00
Claus Vium 06242121c5
Merge pull request #4615 from strugee/fix-restart.sh 2021-09-06 13:53:23 +02:00
Joshua M. Boniface 72d3f7020a
Merge branch 'master' into patch-2 2021-08-18 02:46:59 -04:00
cvium 01491796a2 Enable Workstation GC mode 2021-04-11 12:57:28 +02:00
AJ Jordan bab389114b
Use a service unit, not a scope unit, to restart
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-04 16:33:24 -08:00
AJ Jordan d251c701b9
Use systemd-run(1) in restart.sh
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-12-04 16:18:26 -08:00
Cromefire_ 7396fcfb84
Removed bash style vars 2020-11-24 12:23:44 +01:00
Cromefire_ 1897455004
Update debian/conf/jellyfin
Co-authored-by: Odd Stråbø <oddstr13@openshell.no>
2020-11-23 20:17:40 +01:00
Cromefire_ 20b1f985f0
Added JELLYFIN_ADDITIONAL_OPTS to default file 2020-08-28 21:24:21 +02:00
Fernando Fernández 722f6f5a26 fix typo in debian's config file 2020-07-23 20:53:04 +02:00
Joshua M. Boniface 8c9604afba Add Web integration option in default service conf 2020-04-29 16:06:42 -04:00
Joshua M. Boniface 8b620ed26a Move Debian folder to root of repo 2020-03-22 16:01:33 -04:00
Erwin de Haan 399a079dd4 Build scripts and build system consolidation.
Squashed commit.
2019-01-10 19:45:30 +01:00
Joshua Boniface d4182e761c Tweakes based on review feedback 2019-01-06 14:55:24 -05:00
Joshua Boniface 4e8149bc86 Update logging for async mode from #438 2019-01-05 23:42:00 -05:00
Joshua Boniface 177c4835a5 Add updated configurations for log and config dir
1. Add log and config flags to init and config
2. Move the existing logs and config dirs to the right places
3. Some cleanups in the control scripts
4. Prune the changelog of pre-Jellyfin entries
2019-01-05 22:31:22 -05:00
Joshua M. Boniface a73d255f51 Enable self-contained binary mode (#160)
* Build self-contained Debian linux-x64 binary

* Update initscripts to use self-contained binary

The binary is declared in the units intentionally rather than using
the variable extrapolation from before, to avoid confusion since
these can't really be moved reasonably.

* With combined binary name, use pgrep instead

* Remove dotnet-runtime dependency

* Move the compiled scb to usr/bin

* Update binary location for upstart/systemd

* Move binary path; fix pidfile handling

* Entirely remove the temporary usr/ dir

* Don't move the compiled binary

* Create /usr/bin symlink

* Use the variable here

* Update architecture to any

* Add libcurl4-openssl build dependency

* Update the build Dockerfile to install builddeps
2018-12-14 21:21:48 -05:00
Joshua Boniface 917ccad0ab Improve formatting and add comments 2018-12-12 19:37:40 -05:00
Joshua Boniface 629bedc6e8 Fix up the comment 2018-12-12 19:34:51 -05:00
Joshua Boniface 90a65c009f Can't override ExecStart 2018-12-12 19:33:12 -05:00
Joshua Boniface 18ef4a4684 Major rejigger of init configurations 2018-12-12 19:14:20 -05:00
Joshua Boniface 7d0f5b6259 Organize supplementary files better 2018-12-09 21:58:01 -05:00