Skip to content

Instantly share code, notes, and snippets.

@maunsen
Created December 17, 2016 11:38
Show Gist options
  • Save maunsen/4de87834624aaf6a4f2e77d1f652b408 to your computer and use it in GitHub Desktop.
Save maunsen/4de87834624aaf6a4f2e77d1f652b408 to your computer and use it in GitHub Desktop.
Systemdeamon file for Home Assistant under /etc/systemd/system/
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=homeassistant
ExecStartPre=sudo /usr/bin/bt-device -d CC-RT-BLE
ExecStartPre=source /srv/homeassistant/homeassistant_venv/bin/activate
ExecStart=/srv/homeassistant/homeassistant_venv/bin/hass -c "/home/homeassistant/.homeassistant"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment