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