diff --git a/script/home-assistant@.service b/script/home-assistant@.service new file mode 100644 index 00000000000..983844a95a3 --- /dev/null +++ b/script/home-assistant@.service @@ -0,0 +1,14 @@ +# 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 +WorkingDirectory=%h +ExecStart=/usr/bin/hass --config %h/.homeassistant/ + +[Install] +WantedBy=multi-user.target