xoxys.homeassistant_docker/templates/etc/systemd/system/homeassistant.service.j2
Robert Kaussow 64cfe62226
Some checks reported errors
continuous-integration/drone/push Build was killed
fix venv name in systemd file
2019-04-27 14:29:00 +02:00

16 lines
312 B
Django/Jinja

#jinja2: lstrip_blocks: True
# {{ ansible_managed }}
[Unit]
Description=Home Assistant
After=network-online.target
[Service]
Type=simple
User=homeassistant
ExecStart={{ homeassistant_base_dir }}/venv/bin/hass -c {{ homeassistant_conf_dir }}
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.targe