xoxys.jellyfin/templates/etc/systemd/system/jellyfin.service.j2

30 lines
563 B
Plaintext
Raw Normal View History

2019-02-01 22:05:15 +00:00
#jinja2: lstrip_blocks: True
2019-08-28 08:46:41 +00:00
{{ ansible_managed | comment }}
2019-02-01 22:05:15 +00:00
[Unit]
Description=Jellyfin Media Server
2021-04-18 15:48:02 +00:00
Wants=network-online.target
After=network-online.target
After=syslog.target
2019-02-01 22:05:15 +00:00
[Service]
Type=simple
2021-04-18 15:48:02 +00:00
WorkingDirectory={{ jellyfin_src_dir }}
2019-02-01 22:05:15 +00:00
User={{ jellyfin_user }}
Group={{ jellyfin_group }}
2021-04-18 15:48:02 +00:00
PermissionsStartOnly=true
EnvironmentFile={{ __jellyfin_sysconfig }}
ExecStart={{ jellyfin_base_dir }}/jellyfin-latest --service
2021-04-18 15:48:02 +00:00
Restart=on-failure
TimeoutSec=15
# Avoid noisy crashloops
StartLimitInterval=60
StartLimitBurst=5
2019-02-01 22:05:15 +00:00
[Install]
WantedBy=multi-user.target