I found that After=network.target was not robust enough for Auto-discovery to work correctly and find devices on the network. I changed this to After=network-online.target to wait until the network was completely "up" before starting.
* update init.d daemon script to specify HASS_BIN
As per:
* https://home-assistant.io/docs/autostart/init.d/
, coupled with:
* https://home-assistant.io/docs/installation/virtualenv/
It's obvious that the user needs to replace "RUN_AS" with the correct user.
What can be made more clear is to include a "HASS_BIN" shell variable, with a similar instruction to update that if needed.
Note that I opted NOT to change the HASS_BIN to the full path /usr/bin/hass, as the previous revision presumably assumes that the `hass` binary is in the $PATH env for whatever user is running it ... (didn't want to change that).
* Fix name
* Remove unnecessary environment variable setup
The environment variables are not needed and are actually overriding the system PATH variable and were causing trouble in certain circumstances.
* Make the user for the service dynamic
* Cleans up leftover comment
* Refine text to reflect the changes in the service
* Revert change of the users home path
* Updated docs based on user suggestions
Thanks to @NeLLyMerC for the suggestions. Removed the EOF syntax for creating a file. Cleaned up the description of the systemctl commands. Added 'sudo' to the journalctl commands as it will not show the logs if running as an unprived user.
* Update systemd.markdown