Hi
I’m not able to autorun homeassistant on my RPI 3 using systemd.
I’ve followed the tutorial on this page:
Logged with the user “pi”, i’ve executed the following command:
sudo su -c 'cat <<EOF >> /etc/systemd/system/[email protected]
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=pi
ExecStartPre=source /srv/homeassistant/homeassistant_venv/bin/activate
ExecStart=/srv/homeassistant/homeassistant_venv/bin/hass -c "/home/homeassistant/.homeassistant"
[Install]
WantedBy=multi-user.target
EOF'
Then I’ve executed these three command as described in the tutorial:
sudo systemctl --system daemon-reload
sudo systemctl enable home-assistant@pi
sudo systemctl start home-assistant@pi
But when i check the status with
systemctl status [email protected]
I get
● [email protected]
Loaded: not-found (Reason: No such file or directory)
Active: failed (Result: exit-code) since Sun 2016-10-30 21:43:00 CET; 24min ago
Main PID: 1805 (code=exited, status=217/USER)
Thanks for the help!
Lucas