This is if you want to have hass auto started when your system starts after a reboot or power outage. So you don’t have to start it manually each time. It is like Startup folder in Windows, maybe it is more familiar.
Ok, I suppose your system is using systemd. Yes you can copy paste.
By using “cat” as described there you will create a file in /etc/systemd/system/ with the mentioned name(I used brad as a user, but you know better what user are you ussing)
[email protected]
and content.
[Unit]
....
[Service]
....
[Install]
....
You can do it however you know: vi or nano commands… it doesn’t matter. Just respect the name, content and location.
You can check that the file is created by
ls /etc/systemd/system/
If you have the file there you can check the content by
cat /etc/systemd/system/[email protected]
Ok, once the file is created you have to reload the systemd to make it aware of the new file, for that run
sudo systemctl --system daemon-reload
Once the systemd has reloaded you can start the hass by:
sudo systemctl enable home-assistant@[your user]
sudo systemctl start home-assistant@[your user]
You will not see that never-ending output in this case. if you want to see it use:
journalctl -f -u home-assistant@[your user]
or you can filter the errors:
journalctl -f -u home-assistant@[your user] | grep -i 'error'
If you want to check if the above configuration was ok use this:
sudo systemctl status home-assistant@[your user] -l
you should get something like:
● [email protected] - Home Assistant for [your user]
Loaded: loaded (/etc/systemd/system/home-assistant@[your user].service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2016-03-26 12:26:06 CET; 13min ago
Main PID: 30422 (hass)
CGroup: /system.slice/system-home\x2dassistant.slice/home-assistant@[your user].service
├─30422 /usr/bin/python3 /usr/bin/hass
└─30426 /usr/bin/python3 /usr/bin/hass
[...]
If you did not change the default paths, the ones in the example should work as stated