core/script/home-assistant@.service

21 lines
526 B
INI
Raw Normal View History

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
#
# 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
# Use `whereis hass` to determine the path of hass
ExecStart=/usr/bin/hass --runner
SendSIGKILL=no
RestartForceExitStatus=100
2015-09-03 20:06:50 +00:00
[Install]
WantedBy=multi-user.target