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