hass/templates/home-assistant.service.j2
2020-11-07 15:52:24 +01:00

11 lines
292 B
Django/Jinja

[Unit]
Description=Home Assistant
After=network-online.target {{ 'postgresql.service' if hass_db_type == 'postgres' else mysqld.service }}
[Service]
Type=simple
User={{hass_username}}
ExecStart={{hass_venv_location}}/bin/hass -c "{{hass_conf_folder}}"
[Install]
WantedBy=multi-user.target