mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Update systemd template used in manual installs (#1687)
The systemd template included on the "Getting Started" guide assumes that the user running Home Assistant is called 'hass', however the [Manual Installation guide](https://home-assistant.io/getting-started/installation-raspberry-pi/) uses the username 'homeassistant'.
This commit is contained in:
parent
f892010de8
commit
204a8d5359
@ -35,7 +35,7 @@ WantedBy=multi-user.target
|
|||||||
EOF'
|
EOF'
|
||||||
```
|
```
|
||||||
|
|
||||||
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 our [manual installation guide](https://home-assistant.io/getting-started/installation-raspberry-pi/), the following template should work for you.
|
||||||
|
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
@ -44,9 +44,9 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=hass
|
User=homeassistant
|
||||||
ExecStartPre=source /srv/hass/bin/activate
|
ExecStartPre=source /srv/homeassistant/homeassistant_venv/bin/activate
|
||||||
ExecStart=/srv/hass/bin/hass -c "/home/hass/.homeassistant"
|
ExecStart=/srv/homeassistant/homeassistant_venv/bin/hass -c "/home/homeassistant/.homeassistant"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user