1) Changed signal to exit hass to SIGTERM 2) Updated initd script to send SIGTERM 3) Updated systemd script to never send SIGKILL.
15 lines
296 B
Desktop File
15 lines
296 B
Desktop File
# 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/
|
|
SendSIGKILL=no
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|