Hi,
I’m running ubuntu 16.10. I installed HA using the method “sudo pip3 install homeassistant”
I can’t get autostart working. I followed the instructions on the HA site to no avail: https://home-assistant.io/docs/autostart/systemd/
This is what I tried:
-
determined my system was using systemd
-
ran “whereis hass” - it returned: /home/dan/.local/bin/hass
-
I then created the file using the command “sudo nano -w /etc/systemd/system/[email protected]”, entering the text below and saving (ctrl-x / y)
[Unit]
Description=Home Assistant
After=network.target[Service]
Type=simple
User=%i
ExecStart=/home/dan/.local/bin/hass[Install]
WantedBy=multi-user.target
I then ran:
- sudo systemctl --system daemon-reload
- sudo systemctl enable home-assistant@homeassistant
- sudo systemctl start home-assistant@homeassistant
Then when checking the status using the command: - sudo systemctl status home-assistant@homeassistant
I receive the errors:
Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2017-03-08 15:21:42 GMT; 2s ago
Process: 15415 ExectStart=/home/dan/.local/bin/hass (code=existed, status=217/USER)
Main PID: 15415 (code-exited, status=217/USER)
I also tried running:
- sudo ln -s /lib/systemd/system/home-assistant.service /etc/systemd/system/home-assistant.service
This also didn’t work. I’m pretty stuck now. Any help appreciated!