mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update autostart-systemd.markdown
This commit is contained in:
parent
ecf53028d7
commit
bf29b1e84b
@ -35,7 +35,7 @@ WantedBy=multi-user.target
|
|||||||
EOF'
|
EOF'
|
||||||
```
|
```
|
||||||
|
|
||||||
If you've setup `hass` 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.
|
||||||
|
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
@ -45,8 +45,8 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=hass
|
User=hass
|
||||||
ExecStartPre=source source /srv/hass/bin/activate
|
ExecStartPre=source /srv/hass/bin/activate
|
||||||
ExecStart=/srv/hass/bin/hass -c "/home/hass/.homeassistant"
|
ExecStart=/srv/hass/bin/hass "/home/hass/.homeassistant"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user