core/virtualization/vagrant/home-assistant@.service

24 lines
639 B
INI

# This is a simple service file for systems with systemd to tun HA as user.
#
# For details please check https://home-assistant.io/getting-started/autostart/
#
[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
# Use `whereis hass` to determine the path of hass
ExecStart=/usr/bin/hass --runner
SendSIGKILL=no
RestartForceExitStatus=100
# on vagrant (vboxfs), disable sendfile https://www.virtualbox.org/ticket/9069
Environment=AIOHTTP_NOSENDFILE=1
[Install]
WantedBy=multi-user.target