xoxys.homeassistant_docker/templates/etc/systemd/system/homeassistant.service.j2
2019-04-27 13:52:50 +02:00

16 lines
311 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 }}/env/bin/hass -c {{ homeassistant_conf_dir }}
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.targe