Site updated at 2016-10-26 06:22:42 UTC

This commit is contained in:
Travis CI 2016-10-26 06:22:42 +00:00
parent ef91325063
commit 3578788dd0
23 changed files with 53 additions and 36 deletions

View file

@ -115,6 +115,23 @@ EOF'</span>
</code></pre>
</div>
<p>If youve setup Home Assistant in virtualenv following the guide the following template should work for you.</p>
<div class="highlighter-rouge"><pre class="highlight"><code>[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=hass
ExecStartPre=source /srv/hass/bin/activate
ExecStart=/srv/hass/bin/hass "/home/hass/.homeassistant"
[Install]
WantedBy=multi-user.target
</code></pre>
</div>
<p>There is also another <a href="https://raw.githubusercontent.com/home-assistant/home-assistant/master/script/home-assistant%40.service">sample service file</a> available. To use this one, just download it.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>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