Help rpi4 with raspbian buster not init init.d hass daemon

Hello, I bought a Pi4 to which I have installed raspbian buster but I can not start the hass daemon at startup (running it manually if it works).

I have followed this tutorial:

This tutorial was working correctly on a PI2 with Jessie until now. Do you know what could be the cause of that?

regards

Might have to use systemctl command instead of service

Try “systemctl enable hass-daemon”
Followed by “systemctl start hass-daemon”

That has not been updated in a while I don’t think that guide works anymore on buster

Hi, thanks for answering me. Finally, I think I have solved it by doing the following

#
# sudo vi /etc/systemd/system/hass.service     
# sudo chmod +x /etc/systemd/system/hass.service
# sudo systemctl daemon-reload
# systemctl enable hass.service
#

[Unit]
Description=Home Assistant (hass) Daemon
After=syslog.target network.target docker.service

[Service]
Type=forking
#Start Bluetooth
#ExecStartPre=/usr/bin/hciconfig hci0 up
#ExecStartPre=/usr/sbin/arp -s 10.0.1.29 20:02:af:76:b6:db
ExecStart=/usr/local/bin/hass -v --config /opt/homeassistant --pid-file /var/run/hass.pid --daemon
#Add static arp entry for thermostat
#Add static ipv6 GW
#ExecStartPost=/usr/sbin/route add -A inet6 default gw 2001:470:1f0f:f4::1
PIDFile=/var/run/hass.pid

[Install]
WantedBy=multi-user.target

No worries buddy Glad it helped :slight_smile: