xoxys.homeassistant_docker/templates/etc/systemd/system/homeassistant.service.j2
Robert Kaussow 44a9d73a41
Some checks failed
continuous-integration/drone/push Build is failing
fix systemd file
2019-04-27 18:21:42 +02:00

18 lines
384 B
Django/Jinja

#jinja2: lstrip_blocks: True
# {{ ansible_managed }}
[Unit]
Description=Home Assistant
Wants=network-online.target
After=network-online.target
[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