Use environment variables instead of opts for RPM

pull/1093/head
Joshua Boniface 6 years ago
parent ecf85a73ec
commit 86f5221f96

@ -15,10 +15,10 @@
# #
# Program directories # Program directories
JELLYFIN_DATA_DIRECTORY="/var/lib/jellyfin" JELLYFIN_DATA_DIR="/var/lib/jellyfin"
JELLYFIN_CONFIG_DIRECTORY="/etc/jellyfin" JELLYFIN_CONFIG_DIR="/etc/jellyfin"
JELLYFIN_LOG_DIRECTORY="/var/log/jellyfin" JELLYFIN_LOG_DIR="/var/log/jellyfin"
JELLYFIN_CACHE_DIRECTORY="/var/cache/jellyfin" JELLYFIN_CACHE_DIR="/var/cache/jellyfin"
# In-App service control # In-App service control
JELLYFIN_RESTART_OPT="--restartpath=/usr/libexec/jellyfin/restart.sh" JELLYFIN_RESTART_OPT="--restartpath=/usr/libexec/jellyfin/restart.sh"

@ -5,7 +5,7 @@ Description=Jellyfin is a free software media system that puts you in control of
[Service] [Service]
EnvironmentFile=/etc/sysconfig/jellyfin EnvironmentFile=/etc/sysconfig/jellyfin
WorkingDirectory=/var/lib/jellyfin WorkingDirectory=/var/lib/jellyfin
ExecStart=/usr/bin/jellyfin --datadir=${JELLYFIN_DATA_DIRECTORY} --configdir=${JELLYFIN_CONFIG_DIRECTORY} --logdir=${JELLYFIN_LOG_DIRECTORY} --cachedir=${JELLYFIN_CACHE_DIRECTORY} ${JELLYFIN_RESTART_OPT} ${JELLYFIN_FFMPEG_OPT} ${JELLYFIN_FFPROBE_OPT} ${JELLYFIN_SERVICE_OPT} ${JELLYFIN_NOWEBAPP_OPT} ExecStart=/usr/bin/jellyfin ${JELLYFIN_RESTART_OPT} ${JELLYFIN_FFMPEG_OPT} ${JELLYFIN_FFPROBE_OPT} ${JELLYFIN_SERVICE_OPT} ${JELLYFIN_NOWEBAPP_OPT}
TimeoutSec=15 TimeoutSec=15
Restart=on-failure Restart=on-failure
User=jellyfin User=jellyfin

Loading…
Cancel
Save