2015-09-18 12:18:49 +00:00
|
|
|
# This is a simple service file for systems with systemd to tun HA as user.
|
2015-09-03 20:06:50 +00:00
|
|
|
#
|
2016-04-09 08:55:42 +00:00
|
|
|
# For details please check https://home-assistant.io/getting-started/autostart/
|
|
|
|
#
|
2015-09-03 20:06:50 +00:00
|
|
|
[Unit]
|
2015-09-18 12:18:49 +00:00
|
|
|
Description=Home Assistant for %i
|
2015-09-03 20:06:50 +00:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2015-09-18 12:18:49 +00:00
|
|
|
User=%i
|
2016-03-26 09:58:16 +00:00
|
|
|
# Enable the following line if you get network-related HA errors during boot
|
|
|
|
#ExecStartPre=/usr/bin/sleep 60
|
2016-04-09 08:55:42 +00:00
|
|
|
# Use `whereis hass` to determine the path of hass
|
2016-05-21 19:58:14 +00:00
|
|
|
ExecStart=/usr/bin/hass --runner
|
2015-11-15 22:43:38 +00:00
|
|
|
SendSIGKILL=no
|
2016-05-21 19:58:14 +00:00
|
|
|
RestartForceExitStatus=100
|
2015-09-03 20:06:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|