Add systemctl daemon-reload (#4835)

* Add systemctl daemon-reload

* Minor changes

* Update format
This commit is contained in:
Jerry Workman 2018-03-06 16:10:13 -05:00 committed by Fabian Affolter
parent 8ad6597d2a
commit 4a88a5b148

View File

@ -157,12 +157,26 @@ If the `recorder` component is activated then some components support `restore_s
| 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:
+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 service file.
```bash
$ sudo nano /etc/systemd/system/home-assistant@homeassistant.service
```
and add the service for PostgreSQL:
```
[Unit]
Description=Home Assistant
After=network.target postgresql.service
```
Save the file then reload `systemctl`:
```bash
$ sudo systemctl daemon-reload
```
</p>
## {% linkable_title Installation notes %}