22 lines
592 B
SYSTEMD
22 lines
592 B
SYSTEMD
|
[Unit]
|
||
|
Description=Jellyfin Media Server
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
WorkingDirectory=/var/lib/jellyfin
|
||
|
ExecStart=/usr/lib/jellyfin/jellyfin ${JELLYFIN_WEB_OPT} ${JELLYFIN_RESTART_OPT} ${JELLYFIN_FFMPEG_OPT} ${JELLYFIN_SERVICE_OPT} ${JELLYFIN_NOWEBAPP_OPT}
|
||
|
TimeoutSec=15
|
||
|
Restart=on-failure
|
||
|
User=jellyfin
|
||
|
Group=jellyfin
|
||
|
|
||
|
# Program directories
|
||
|
Environment="JELLYFIN_DATA_DIR=/var/lib/jellyfin"
|
||
|
Environment="JELLYFIN_CONFIG_DIR=/etc/jellyfin"
|
||
|
Environment="JELLYFIN_LOG_DIR=/var/log/jellyfin"
|
||
|
Environment="JELLYFIN_CACHE_DIR=/var/cache/jellyfin"
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|