Hi to everyone,
Yesterday I installed HA in my raspberry using the “manual installation”, and i wanted to make the Autostart. I tried few things and didn’t worked.
But now, after make few changes in the script, worked using stating the service and stopping. Now i just need to try if after reboot works, but i think that will work if daemon-service worked. I used this script that someone before added: https://raw.githubusercontent.com/home-assistant/home-assistant/dev/script/hass-daemon.
In the manual installation using a virtual enviroment, i created the user homeassistant in my case. Then, my hass file that execute HA is in: /srv/homeassistant/homeassistant_venv/bin/, with other files like “activate”.
My config yaml file is in this route: /home/homeassistant/.homeassistant/.
This is the modified part of the script for the /etc/init.d/hass-daemon file:
FLAGS="-v --config $CONFIG_DIR --pid-file $PID_FILE --daemon"
REDIRECT="> $CONFIG_DIR/home-assistant.log 2>&1"
Hope i can help to someone.