hass/templates/home-assistant.service.j2

11 lines
292 B
Plaintext
Raw Normal View History

2020-03-01 15:18:48 +00:00
[Unit]
Description=Home Assistant
2020-11-07 14:52:24 +00:00
After=network-online.target {{ 'postgresql.service' if hass_db_type == 'postgres' else mysqld.service }}
2020-03-01 15:18:48 +00:00
[Service]
Type=simple
User={{hass_username}}
ExecStart={{hass_venv_location}}/bin/hass -c "{{hass_conf_folder}}"
[Install]
WantedBy=multi-user.target