mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Delay Supervisor start until time has been sychronized (#1360)
* Enable systemd-time-wait-sync.service by default Enable the systemd-time-wait-sync.service by default. This allows to use the time-sync.target which allows to make sure services only get started once the time is synchronized. * Make sure time is synchronized when starting hassos-supervisor.service Use the time-sync.target to make sure that the Supervisor gets stsarted after the time has been synchronized. * Set timeout for systemd-time-wait-sync.service Don't delay startup forever in case time synchronization doesn't work. This allows to boot the system even without Internet connection.
This commit is contained in:
parent
9dd269d766
commit
2d3119ef22
@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
TimeoutStartSec=90s
|
@ -1 +1,3 @@
|
||||
disable apparmor.service
|
||||
|
||||
enable systemd-time-wait-sync.service
|
||||
|
@ -1,8 +1,8 @@
|
||||
[Unit]
|
||||
Description=HassOS supervisor
|
||||
Requires=docker.service rauc.service dbus.service
|
||||
Wants=network-online.target hassos-apparmor.service
|
||||
After=docker.service rauc.service dbus.service network-online.target
|
||||
Wants=network-online.target hassos-apparmor.service time-sync.target
|
||||
After=docker.service rauc.service dbus.service network-online.target time-sync.target
|
||||
RequiresMountsFor=/mnt/data /mnt/boot /mnt/overlay
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=5
|
||||
|
Loading…
x
Reference in New Issue
Block a user