[systemd-devel] systemctl start seems to hang with no status
Michal Koutný
mkoutny at suse.com
Thu Nov 4 18:28:56 UTC 2021
Hello.
On Fri, Oct 22, 2021 at 01:28:28PM +0200, Ulrich Windl <Ulrich.Windl at rz.uni-regensburg.de> wrote:
> Interestingly I wouldn't expect "Reached target System Time Synchronized.".
The deps are a bit backwards (but not the job ordering):
ntp-wait.service
Wants=time-sync.target
Before=time-sync.target
I.e. the job for time-sync.target is pulled in but it doesn't depend on
anything (the target itself has no Wants=) so it just succeeds after
ntp-wait.service job finishes (fails).
> I don't understand: Was the missing ntp.conf file blocking the service for 11
> minutes?
It's the RestartSec=11min in the ntpd.service configuration that delayed
the restart attempt.
Hopefully that explains the behavior you saw.
Michal
More information about the systemd-devel
mailing list