From 4a88a5b148e2a36834da9a180545b025d891914f Mon Sep 17 00:00:00 2001 From: Jerry Workman Date: Tue, 6 Mar 2018 16:10:13 -0500 Subject: [PATCH] Add systemctl daemon-reload (#4835) * Add systemctl daemon-reload * Minor changes * Update format --- source/_components/recorder.markdown | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/source/_components/recorder.markdown b/source/_components/recorder.markdown index 0b777cdf364..b0d42275064 100644 --- a/source/_components/recorder.markdown +++ b/source/_components/recorder.markdown @@ -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` |

-+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 +``` +

## {% linkable_title Installation notes %}