arch-pkgs/jellyfin-server/systemd.service
George Rawlinson da2050e65a
upgpkg: jellyfin-server
* Modify systemd service.
* Add service override for environment variables.
* Add configuration files to backup array.
* Add logging configuration.
* Add optional configuration to documentation directory.
2021-09-24 00:03:39 +00:00

21 lines
592 B
Desktop File

[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