As in /etc/systemd/system/home-assistant@YOUR_USER.service
I have created a user homeassistant so created /etc/systemd/system/[email protected]
as per the above instructions for a virtual environment (setup done via Installing Home Assistant Core on Fedora) - only change is the location of home assistant which I checked via whereis hass
Description=Home Assistant
After=network-online.target
[Service]
Type=simple
User=%i
WorkingDirectory=/home/%i/.homeassistant
ExecStart=/opt/homeassistant/bin/hass -c "/home/%i/.homeassistant"
[Install]
WantedBy=multi-user.target
File details as follows
-rwxr-xr-x 1 root root 238 Sep 4 18:53 /etc/systemd/system/[email protected] ```