Update autostart-systemd.markdown

This commit is contained in:
ryqiem 2016-10-23 15:19:34 +02:00 committed by GitHub
parent ecf53028d7
commit bf29b1e84b

View File

@ -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