LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-17-2018, 09:40 AM   #16
deltamind106
LQ Newbie
 
Registered: Dec 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by scasey View Post
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.
 
Old 12-17-2018, 09:41 AM   #17
deltamind106
LQ Newbie
 
Registered: Dec 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lazydog View Post
Here's a page I found that might help you track down your issues.

How to Manage ‘Systemd’ Services and Units Using ‘Systemctl’ in Linux
Yeah that article has some suggestions I've not tried yet. Specifically the "systemd-analyze critical-chain" seems like it might shed some light. Thanks for the link!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Story Behind ‘init’ and ‘systemd’: Why ‘init’ Needed to be Replaced with ‘systemd’ in Linu LXer Syndicated Linux News 1 04-07-2017 11:33 PM
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 02:44 PM
LXer: Why pro-systemd and anti-systemd people will never get along LXer Syndicated Linux News 0 05-15-2015 11:44 PM
LXer: Is systemd as bad as boycott systemd is trying to make it? LXer Syndicated Linux News 0 09-03-2014 05:50 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration