xoxys.jellyfin/templates/etc/systemd/system/jellyfin.service.j2
Robert Kaussow bbf9f4467f
All checks were successful
continuous-integration/drone/push Build is passing
fix ansible_managed handling
2019-08-28 10:46:41 +02:00

21 lines
522 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 }}
Restart=on-failure
TimeoutSec=15
User={{ jellyfin_user }}
Group={{ jellyfin_group }}
WorkingDirectory={{ jellyfin_base_dir }}
ExecStart={{ jellyfin_base_dir }}/jellyfin-latest
[Install]
WantedBy=multi-user.target