2015-09-18 14:18:49 +02:00
|
|
|
# This is a simple service file for systems with systemd to tun HA as user.
|
2015-09-03 22:06:50 +02:00
|
|
|
#
|
2016-04-09 10:55:42 +02:00
|
|
|
# For details please check https://home-assistant.io/getting-started/autostart/
|
|
|
|
#
|
2015-09-03 22:06:50 +02:00
|
|
|
[Unit]
|
2015-09-18 14:18:49 +02:00
|
|
|
Description=Home Assistant for %i
|
2015-09-03 22:06:50 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2015-09-18 14:18:49 +02: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 10:55:42 +02:00
|
|
|
# Use `whereis hass` to determine the path of hass
|
2016-05-21 15:58:14 -04:00
|
|
|
ExecStart=/usr/bin/hass --runner
|
2015-11-15 17:43:38 -05:00
|
|
|
SendSIGKILL=no
|
2016-05-21 15:58:14 -04:00
|
|
|
RestartForceExitStatus=100
|
2015-09-03 22:06:50 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|