Created
September 18, 2016 10:17
-
-
Save nvella/4a22800430211f64f6407ebf1663af06 to your computer and use it in GitHub Desktop.
Home Assistant systemd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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