Skip to content

Instantly share code, notes, and snippets.

@nvella
Created September 18, 2016 10:17
Show Gist options
  • Save nvella/4a22800430211f64f6407ebf1663af06 to your computer and use it in GitHub Desktop.
Save nvella/4a22800430211f64f6407ebf1663af06 to your computer and use it in GitHub Desktop.
Home Assistant systemd
[Unit]
Description=Home Assistant
After=network.target
[Service]
Type=simple
User=homeassist
ExecStart=/home/homeassist/run_hass.sh
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/hass.service
#!/bin/bash
source ~homeassist/bin/activate
cd ~homeassist
hass
# /home/homeassist/run_hass.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment