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.
This commit is contained in:
arjenfvellinga 2016-11-20 18:06:29 +01:00 committed by Fabian Affolter
parent 48703d3543
commit eb538d9b70

View File

@ -35,6 +35,12 @@ WantedBy=multi-user.target
EOF' 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. 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 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. You need to reload `systemd` to make the daemon aware of the new configuration. Enable and launch Home Assistant after that.
```bash ```bash