Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: why does netclient.service wait for 17 seconds? #3019

Open
1 task done
mfide opened this issue Jul 25, 2024 · 0 comments
Open
1 task done

[Bug]: why does netclient.service wait for 17 seconds? #3019

mfide opened this issue Jul 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mfide
Copy link

mfide commented Jul 25, 2024

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:

17.069s netclient.service
 7.630s systemd-networkd-wait-online.service
 2.251s fwupd-refresh.service
 2.109s fwupd.service
 1.101s lvm2-monitor.service
  854ms docker.service
  775ms snapd.seeded.service
  695ms snapd.service
..
..

netclient.service is the top1 in this list.
Then I check the content of /etc/systemd/system/netclient.service file:

[Unit]
Description=Netclient Daemon
Documentation=https://docs.netmaker.org https://k8s.netmaker.org
After=network-online.target
Wants=network-online.target

[Service]
User=root
Type=simple
ExecStartPre=/bin/sleep 17
ExecStart=/sbin/netclient daemon
Restart=on-failure
RestartSec=15s

[Install]
WantedBy=multi-user.target

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.
@mfide mfide added the bug Something isn't working label Jul 25, 2024
@mfide mfide changed the title [Bug]: why does netclient.service waits for 17 seconds? [Bug]: why does netclient.service wait for 17 seconds? Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants