xoxys.homeassistant_docker/templates/etc/systemd/system/homeassistant.service.j2
Robert Kaussow ed046b9566
All checks were successful
continuous-integration/drone/push Build is passing
add systemd after list
2019-10-13 23:15:36 +02:00

20 lines
440 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=Home Assistant
Wants=network-online.target
{% for item in homeassistant_systemd_after %}
After={{ item }}
{% endfor %}
[Service]
Type=simple
User={{ homeassistant_user }}
Group={{ homeassistant_group }}
ExecStart={{ homeassistant_base_dir }}/venv/bin/hass -c {{ homeassistant_conf_dir }}
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target