I have a service that requires time being set. By googling around I found that the "systemd-time-wait-sync.service" is responsible for letting the system know when time is set.
I have a systemd service with the following unit requirements:
I see that the systemd-time-wait-sync service is installed but its not enabled. If I don't have systemd-time-wait-sync.service enabled, my service runs even if time is not set (and for that matter network isn't online). However, if I manually enable the systemd-time-wait-sync.service, my service works and will not run until time is actually set, after we get the network online.
How do I make the systemd-time-wait-sync.service enabled at install time? (e.g. automatically create the symbolic link to the /etc/systemd/system/sysinit.target.wants?
Solved! Go to Solution.