Include retry to 20 seconds to fix daemon shutdown, this close #260

Start hass after starting daemons that can be used
This commit is contained in:
INODE64 2022-12-21 15:59:57 +01:00
parent a8c64573f8
commit 1817ddff80
2 changed files with 4 additions and 6 deletions

View File

@ -9,6 +9,7 @@ user="homeassistant:homeassistant"
stdoutlog="/var/log/homeassistant/stdout.log"
serverlog="/var/log/homeassistant/server.log"
warningslog="/var/log/homeassistant/warnings.log"
retry="20"
start_stop_daemon_args="--user $user --stdout $stdoutlog --stderr $serverlog --wait 10"
@ -25,9 +26,7 @@ pidfile=/run/homeassistant.pid
depend() {
need net
# need socat-zwave
# need mosquitto
after bootmisc
after apcupsd asterisk bluetooth cups dhcp esphome influxdb mosquitto mysql netdata prometheus socat-zwave syncthing unifi upsd xabbix zigbee2mqtt zoneminder
}
start_pre() {

View File

@ -9,6 +9,7 @@ user="homeassistant:homeassistant"
stdoutlog="/var/log/homeassistant/stdout.log"
serverlog="/var/log/homeassistant/server.log"
warningslog="/var/log/homeassistant/warnings.log"
retry="20"
start_stop_daemon_args="--user $user --stdout $stdoutlog --stderr $serverlog --wait 10"
@ -25,9 +26,7 @@ pidfile=/run/homeassistant.pid
depend() {
need net
# need socat-zwave
# need mosquitto
after bootmisc
after apcupsd asterisk bluetooth cups dhcp esphome influxdb mosquitto mysql netdata prometheus socat-zwave syncthing unifi upsd xabbix zigbee2mqtt zoneminder
}
start_pre() {