home-assistant.github.io/source/_docs/autostart
CV 3453399df6 Changed wording and init scripts (#4455)
I  changed the init scripts to be more reliable.

hass executable supports the option --log-file. Using this is much safer and does not lead to problems with permission and overwriting old logfiles. Also I added creating the directory and ownership in the install function. To prevent log file groth I added a logrotate rule.

I moved the update-rc.d command you had in your manual into the install function since you already ad it in the uninstall function. This prevents more copy&paste errors.

I changed the PID file to be located in an extra directory. This way you do not have to to this hack with writing a fake PID file in the install function. Also, I read many users having problems that hass daemon is not starting (see eg. https://community.home-assistant.io/t/autostart-virtualenv-ubuntu-14-04/2120/37) without showing any errors. This is due to a missing PID file or its wrong permissions. By changing as stated and adding a test this problem should not arise any more.

I changes some wording in the manual to make it more understandable.
2018-01-18 23:45:19 +01:00
..
init.d.markdown Changed wording and init scripts (#4455) 2018-01-18 23:45:19 +01:00
macos.markdown Re-organisation Documentation and Getting started (#2055) 2017-02-23 11:09:41 +01:00
synology.markdown Fix incorrect file name in autostart symlink and chmod (#3727) 2017-10-23 09:57:49 +02:00
systemd.markdown Update systemd.markdown (#4185) 2017-12-11 10:04:38 +01:00
upstart.markdown Fixed common spelling mistakes (#3544) 2017-10-08 00:39:32 +02:00