Created
April 21, 2016 11:40
-
-
Save fearoffish/40166d69c8b65bea7c8fe98033753922 to your computer and use it in GitHub Desktop.
Home Assistant Startup Script
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
# This is a simple service file for systems with systemd to tun HA as user. | |
# | |
[Unit] | |
Description=Home Assistant for %i | |
After=network.target | |
[Service] | |
Type=simple | |
User=%i | |
# Enable the following line if you get network-related HA errors during boot | |
#ExecStartPre=/usr/bin/sleep 60 | |
ExecStart=/usr/local/bin/hass | |
SendSIGKILL=no | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment