Robert Kaussow
905d9899cc
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Robert Kaussow <mail@geeklabor.de> Reviewed-on: #1 Co-authored-by: Robert Kaussow <xoxys@rknet.org> Co-committed-by: Robert Kaussow <xoxys@rknet.org>
30 lines
563 B
Django/Jinja
30 lines
563 B
Django/Jinja
#jinja2: lstrip_blocks: True
|
|
{{ ansible_managed | comment }}
|
|
[Unit]
|
|
Description=Jellyfin Media Server
|
|
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
After=syslog.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
WorkingDirectory={{ jellyfin_src_dir }}
|
|
|
|
User={{ jellyfin_user }}
|
|
Group={{ jellyfin_group }}
|
|
|
|
PermissionsStartOnly=true
|
|
EnvironmentFile={{ __jellyfin_sysconfig }}
|
|
ExecStart={{ jellyfin_base_dir }}/jellyfin-latest --service
|
|
|
|
Restart=on-failure
|
|
TimeoutSec=15
|
|
# Avoid noisy crashloops
|
|
StartLimitInterval=60
|
|
StartLimitBurst=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|