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
|
2019-07-30 21:02:40 +00:00
|
|
|
Environment=JELLYFIN_DATA_DIR={{ 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
|