mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Some combination of these options were causing problems with the functionality of restart.sh as described in the comment and in detail in issue #7503. While these seem OK on their face, the implications of this breaking restart.sh means that they could potentially break other things too. Thus, we should move these into the optional override file which is in the administrator's full control, instead of in the default unit, and leave them off unless a user or package maintainer (e.g. NixOS as described in the original issue #6952) wants to enable them. Fixes #7503
17 lines
483 B
Desktop File
17 lines
483 B
Desktop File
[Unit]
|
|
Description = Jellyfin Media Server
|
|
After = network-online.target
|
|
|
|
[Service]
|
|
Type = simple
|
|
EnvironmentFile = /etc/default/jellyfin
|
|
User = jellyfin
|
|
Group = jellyfin
|
|
WorkingDirectory = /var/lib/jellyfin
|
|
ExecStart = /usr/bin/jellyfin ${JELLYFIN_WEB_OPT} ${JELLYFIN_RESTART_OPT} ${JELLYFIN_FFMPEG_OPT} ${JELLYFIN_SERVICE_OPT} ${JELLYFIN_NOWEBAPP_OPT} ${JELLYFIN_ADDITIONAL_OPTS}
|
|
Restart = on-failure
|
|
TimeoutSec = 15
|
|
SuccessExitStatus=0 143
|
|
|
|
[Install]
|
|
WantedBy = multi-user.target
|