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:
Stefan Agner
2021-05-12 17:47:42 +02:00
committed by GitHub
parent 9dd269d766
commit 2d3119ef22
3 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
[Service]
TimeoutStartSec=90s