Merge pull request #4772 from JerryWorkman/patch-9

Add note to ensure database instance starts before Home Assistant
This commit is contained in:
DubhAd 2018-02-27 07:10:25 +00:00 committed by GitHub
commit 03d30a2d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,15 @@ If the `recorder` component is activated then some components support `restore_s
| PostgreSQL | `postgresql://scott:tiger@SERVER_IP/DB_NAME` | | PostgreSQL | `postgresql://scott:tiger@SERVER_IP/DB_NAME` |
| MS SQL Server | `mssql+pymssql://user:pass@SERVER_IP/DB_NAME?charset=utf8` | | MS SQL Server | `mssql+pymssql://user:pass@SERVER_IP/DB_NAME?charset=utf8` |
+<p class='note'>
+If you are running a database server instance on the same server as Home Assistant then you must ensure that this service starts before Home Assistant. For a Linux instance running Systemd (Raspberry Pi, Debian, Ubuntu and others) then you should edit the file /etc/systemd/system/home-assistant@homeassistant.service as root (e.g. sudo nano /etc/systemd/system/home-assistant@homeassistant.service) and add the service - for PostgreSQL:
+```
+[Unit]
+Description=Home Assistant
+After=network.target postgresql.service
+```
+</p>
## {% linkable_title Installation notes %} ## {% linkable_title Installation notes %}
Not all Python bindings for the chosen database engine can be installed directly. This section contains additional details which should help you to get it working. Not all Python bindings for the chosen database engine can be installed directly. This section contains additional details which should help you to get it working.