Quote:
Originally Posted by scasey
I'm certainly no expert, but isn't what the OP is asking for done with After?
In the ifup and/or networking service(s)
Code:
After=hwclock.service
...to get it/them to wait for the hwclock.service.
|
The "After=" bit seems to launch the the ifup service "after" the hwclock service, but it doesn't actually wait for it to finish before launching the other service. So yes, with the above configuration, hwclock is *launched* first, but then ifup is launched immediately afterward, and then the two processes run concurrently, leading to the race condition.
The race condition is: ifup spawns "dhclient", and while dhclient is waiting for its DHCP offer, the hwclock service modifies the clock, which screws up dhclient's timeout.
Obviously I need something where a service waits for another service to finish/exit, before continuing.