Skip to content

Instantly share code, notes, and snippets.

@fearoffish
Created April 21, 2016 11:40
Show Gist options
  • Save fearoffish/40166d69c8b65bea7c8fe98033753922 to your computer and use it in GitHub Desktop.
Save fearoffish/40166d69c8b65bea7c8fe98033753922 to your computer and use it in GitHub Desktop.
Home Assistant Startup Script
# 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