From eb538d9b70ecd0fefcc13f0324bf7fd5ee06b5fc Mon Sep 17 00:00:00 2001 From: arjenfvellinga Date: Sun, 20 Nov 2016 18:06:29 +0100 Subject: [PATCH] Changed order of instructions. (#1466) Order of the instructions suggested that the sample service file could be used if you installed Hass in a virtual environment. Which isn't the case. --- source/getting-started/autostart-systemd.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/getting-started/autostart-systemd.markdown b/source/getting-started/autostart-systemd.markdown index 245b9f9e64e..6c264f3733f 100644 --- a/source/getting-started/autostart-systemd.markdown +++ b/source/getting-started/autostart-systemd.markdown @@ -35,6 +35,12 @@ WantedBy=multi-user.target EOF' ``` +There is also another [sample service file](https://raw.githubusercontent.com/home-assistant/home-assistant/master/script/home-assistant%40.service) available. To use this one, just download it. + +```bash +$ sudo wget https://raw.githubusercontent.com/home-assistant/home-assistant/master/script/home-assistant%40.service -O /etc/systemd/system/home-assistant@[your user].service +``` + If you've setup Home Assistant in virtualenv following the guide the following template should work for you. ``` @@ -52,12 +58,6 @@ ExecStart=/srv/hass/bin/hass -c "/home/hass/.homeassistant" WantedBy=multi-user.target ``` -There is also another [sample service file](https://raw.githubusercontent.com/home-assistant/home-assistant/master/script/home-assistant%40.service) available. To use this one, just download it. - -```bash -$ sudo wget https://raw.githubusercontent.com/home-assistant/home-assistant/master/script/home-assistant%40.service -O /etc/systemd/system/home-assistant@[your user].service -``` - You need to reload `systemd` to make the daemon aware of the new configuration. Enable and launch Home Assistant after that. ```bash