You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a PreStart script which waits for 17 seconds as hard coded for nothing in the netclient.service file.
According to the blame list above, my system becomes online in 7 seconds (systemd-networkd-wait-online service).
Why does netclient service has this 17 second sleep time?
Thank you.
Version
v0.24.2
What OS are you using?
Linux
Relevant log output
No response
Contributing guidelines
Yes, I did.
The text was updated successfully, but these errors were encountered:
Hi there! I can help explain why this delay exists and what we can do about it.
Looking at your service file, that 17-second sleep delay is actually a legacy workaround from earlier versions of netclient. It was originally implemented to ensure network services were fully initialized before starting netclient, but this approach has been largely superseded by better handling in newer versions.
Since you're running v0.24.2 and your system shows network-online is achieved in ~7.6 seconds, this delay is unnecessarily long. The service file already has the proper dependencies:
This will override the original 17-second sleep with a more reasonable 5-second delay. I'm suggesting 5 seconds rather than removing it entirely just to provide a small buffer after network-online.target is reached.
I have netclient v0.24.2 runs on Ubuntu 24.04 server.
When I run
systemd-analyze blame
to see the slowest services in my system, I get following list:netclient.service is the top1 in this list.
Then I check the content of
/etc/systemd/system/netclient.service
file:There is a PreStart script which waits for 17 seconds as hard coded for nothing in the netclient.service file.
According to the blame list above, my system becomes online in 7 seconds (systemd-networkd-wait-online service).
Why does netclient service has this 17 second sleep time?
Thank you.
Version
v0.24.2
What OS are you using?
Linux
Relevant log output
No response
Contributing guidelines
The text was updated successfully, but these errors were encountered: