Unify and standardize unit files between deb/rpm

Ensures that the RPM service unit has all the tweaks from the Deb
service unit, and some in the other direction too.
This commit is contained in:
Joshua M. Boniface
2021-12-12 17:01:35 -05:00
parent 9a2b88cb1f
commit fcf5b9b46e
2 changed files with 47 additions and 11 deletions

View File

@@ -6,6 +6,8 @@ After = network-online.target
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
@@ -44,6 +46,5 @@ SystemCallFilter=~@setuid
SystemCallFilter=~@swap
SystemCallErrorNumber=EPERM
[Install]
WantedBy = multi-user.target