21 Commits

Author SHA1 Message Date
CV
970acbb40b Make init script raspi-proof (#4459)
Raspbian does not keep files in /run. Therefor the pid directory needs to be created every time after boot. The easies is to put this into the start function.

Sorry, I did not test the patch with all my legacy systems.
2018-01-25 19:28:29 +01:00
Franck Nijhof
6224c71c08 Various markdown, spelling, and grammar fixes #3 (#4510)
*  Various markdown, spelling, and grammar fixes

*  Various markdown, spelling, and grammar fixes

*  Various markdown, spelling, and grammar fixes
2018-01-25 18:21:05 +01:00
itineric
b9be5b2790 Update init.d.markdown (#4512)
Added missing PID_DIR declaration, service install generates errors since this variable is used during install / uninstall.
2018-01-25 18:19:03 +01:00
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
Jeremy
d40dd5e6bb Update systemd.markdown (#4185)
Correct spelling of Home Assistant on line 131.
2017-12-11 10:04:38 +01:00
Questler
33640d18af Update init.d.markdown (#4147)
* Update init.d.markdown

Added code for Python virtual environment

* Update init.d.markdown

* Update init.d.markdown
2017-12-06 22:41:27 +01:00
caz0075
2da586c0b4
Update systemd.markdown
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.
2017-11-21 09:53:26 +10:00
Devon Peet
39b30f6582 Added restart && journal, which I use all the time (#3795) 2017-10-27 07:34:29 +02:00
Devon Peet
081d0d4dd9 Clarity Edits (#3794) 2017-10-27 07:33:15 +02:00
Kevin Delaney
13c6d6befd Fix incorrect file name in autostart symlink and chmod (#3727) 2017-10-23 09:57:49 +02:00
Fermulator
f2ec8c291f update init.d daemon script to specify HASS_BIN (#3700)
* 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
2017-10-21 17:35:57 +02:00
NeLLyMerC
fa1149cde1 Update systemd.markdown (#3560)
- Cleaned up bullet points for clarity and readibility
- Added header for "Next Steps" after templates
- Removed redundant sentence
2017-10-08 23:43:58 +02:00
Ashton Campbell
9e6b9cb658 Fixed common spelling mistakes (#3544)
* fix spelling errors

* Update binary_sensor.xiaomi_aqara.markdown

Reverts to previous revision before spell check.

* Update tellstick.markdown

Reverts to previous revision before spell check.

* Update owntracks_two_mqtt_broker.markdown

Reverts to previous revision before spell check.

* Update cla_sign.html

Reverts to previous revision before spell check.

* Update credits.markdown

Reverts to previous revision before spell check.

* Update api.markdown

Fixed spell checker changing noone to no one.
2017-10-08 00:39:32 +02:00
guygma
e2d68f265f Create systemd.markdown (#2790) 2017-06-09 17:42:16 +02:00
vrs01
5c35282fa3 Update systemd.markdown (#2776) 2017-06-06 07:39:00 +02:00
Fabian Affolter
dc641be860
Remove whitespace 2017-04-07 10:30:38 +02:00
Fabian Affolter
60b81147a2
Add sections 2017-04-07 10:30:38 +02:00
cgtobi
3512b476b4 Remove unnecessary environment variable setup from systemd service (#2223)
* 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
2017-03-18 22:08:17 +01:00
Brahma Fear
7de7d3eacb Updated docs based on user suggestions (#2196)
* 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
2017-03-07 19:40:22 +01:00
johnappletree
943c8863d3 added lines of code for ubuntu 16.04 installation (#2189) 2017-03-04 13:51:12 +01:00
Fabian Affolter
481320128f Re-organisation Documentation and Getting started (#2055)
* Split MQTT documentation

* Add more details

* Move content to /docs

* Enable sidebar

* Move content to /docs

* Enable sidebar

* Move content

* Update links

* Remove wizard stuff

* Enable sidebar

* Minor changes

* Move MQTT parts to /docs

* update links

* Update links and sync content

* Fix link

* Enable sidebar

* Remove navigation

* Remove navigation and other minor updates

* Update links

* Add overview page

* Make title linkable

* Update

* Plit content

* Update links

* Rearrange content

* New getting-started section

* Add icons for docs

* Update for new structure

* Update for new structure

* Add docs navigation

* Add docs overview page

* Remove ecosystem navigation

* Add docs and remove other collections

* Move ecosystem to docs

* Remove duplicate files

* Re-add ecosystem overview

* Move to ecosystem

* Fix permission

* Update navigation

* Remove collection

* Move overview to right folder

* Move mqtt to upper level

* Move notebook to ecosystem

* Remove un-used files

* Add one more rectangle for iOS

* Move two parts back from docs and rename Run step

* Remove colon

* update getting-started section

* Add redirect

* Update

* Update navigation
2017-02-23 11:09:41 +01:00