mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-11-11 19:59:28 +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:
@@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
TimeoutStartSec=90s
|
||||||
@@ -1 +1,3 @@
|
|||||||
disable apparmor.service
|
disable apparmor.service
|
||||||
|
|
||||||
|
enable systemd-time-wait-sync.service
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=HassOS supervisor
|
Description=HassOS supervisor
|
||||||
Requires=docker.service rauc.service dbus.service
|
Requires=docker.service rauc.service dbus.service
|
||||||
Wants=network-online.target hassos-apparmor.service
|
Wants=network-online.target hassos-apparmor.service time-sync.target
|
||||||
After=docker.service rauc.service dbus.service network-online.target
|
After=docker.service rauc.service dbus.service network-online.target time-sync.target
|
||||||
RequiresMountsFor=/mnt/data /mnt/boot /mnt/overlay
|
RequiresMountsFor=/mnt/data /mnt/boot /mnt/overlay
|
||||||
StartLimitIntervalSec=60
|
StartLimitIntervalSec=60
|
||||||
StartLimitBurst=5
|
StartLimitBurst=5
|
||||||
|
|||||||
Reference in New Issue
Block a user