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

21 lines
515 B
Plaintext
Raw Normal View History

2019-02-01 22:05:15 +00:00
#jinja2: lstrip_blocks: True
# {{ ansible_managed }}
[Unit]
Description=Jellyfin Media Server
After=network.target
[Service]
Type=simple
Environment=JELLYFIN_DATA_PATH={{ jellyfin_data_dir }}
2019-02-01 22:25:37 +00:00
Environment=JELLYFIN_CONFIG_DIR={{ jellyfin_conf_dir }}
2019-02-01 22:05:15 +00:00
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