xoxys.jellyfin/templates/etc/systemd/system/jellyfin.service.j2
Robert Kaussow 9834d49004
All checks were successful
continuous-integration/drone/push Build is passing
update to v10.5 and add cache dir config
2020-03-14 14:25:13 +01:00

22 lines
606 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=Jellyfin Media Server
After=network.target
[Service]
Type=simple
Environment=JELLYFIN_DATA_DIR={{ jellyfin_data_dir }}
Environment=JELLYFIN_CONFIG_DIR={{ jellyfin_conf_dir }}
Environment=JELLYFIN_LOG_DIR={{ jellyfin_log_dir }}
Environment=JELLYFIN_CACHE_DIR={{ jellyfin_cache_dir }}
Restart=on-failure
TimeoutSec=15
User={{ jellyfin_user }}
Group={{ jellyfin_group }}
WorkingDirectory={{ jellyfin_base_dir }}
ExecStart={{ jellyfin_base_dir }}/jellyfin-latest --service --noautorunwebapp
[Install]
WantedBy=multi-user.target