Skip to content

Commit eb538d9

Browse files
arjenfvellingafabaff
authored andcommitted
Changed order of instructions. (home-assistant#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.
1 parent 48703d3 commit eb538d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/getting-started/autostart-systemd.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ WantedBy=multi-user.target
3535
EOF'
3636
```
3737

38+
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.
39+
40+
```bash
41+
$ 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
42+
```
43+
3844
If you've setup Home Assistant in virtualenv following the guide the following template should work for you.
3945

4046
```
@@ -52,12 +58,6 @@ ExecStart=/srv/hass/bin/hass -c "/home/hass/.homeassistant"
5258
WantedBy=multi-user.target
5359
```
5460

55-
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.
56-
57-
```bash
58-
$ 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
59-
```
60-
6161
You need to reload `systemd` to make the daemon aware of the new configuration. Enable and launch Home Assistant after that.
6262

6363
```bash

0 commit comments

Comments
 (0)