Orange PI Zero autostart

Hello,

my hass autostart on a orange pi zero (H2+) is not working. I installed hass in a virtual environment. When I use putty to log in with my user account “ha” and enter homeassistant/bin/hass -c “/home/ha/.homeassistant” hass is starting and running well.

but it doesnt´t start on the startup automatically. I created a service file in: /etc/systemd/system/hass.service with this content:

[Unit]
Description=Home Assistant
After=network-online.target

[Service]
Type=simple
User=ha
ExecStart=homeassistant/bin/hass -c "/home/ha/.homeassistant"

[Install]
WantedBy=multi-user.target

You need the absolute path here -

/home/ha/homeassistant/bin/hass