You are not logged in.

#1 2016-10-08 09:37:50

LindyBalboa
Member
Registered: 2016-10-06
Posts: 39

[Solved] Netcl service blocks while connecting at startup

Hey everyone. So I generated a profile with wifi-menu and it seems to be hogging my startup time and preventing anything else from really happening. No login prompt until it is done. Is there a way to make the start-up of this non-blocking? Or is there a better method to get an auto-connect generally around boot time??


systemd-analyze critical-chain:

graphical.target @19.401s
└─multi-user.target @19.401s
  └─getty.target @19.401s
    └─getty@tty1.service @19.400s
      └─systemd-user-sessions.service @19.324s +64ms
        └─network.target @19.312s
          └─netctl@wlo1\x2dschoene\x20Aussicht.service @6.544s +12.767s
            └─sys-subsystem-net-devices-wlo1.device @6.523s

Last edited by LindyBalboa (2016-10-09 14:12:23)

Offline

#2 2016-10-08 12:39:06

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: [Solved] Netcl service blocks while connecting at startup

The problem is that the service is “Type=oneshot” which is why it blocks until the network is started. Whilst you could create a drop-in that overrides it to be “Type=simple”, it may be better to switch to netctl-auto (even if you only have one profile) - see Automatic switching of profiles
You may also want to add the netctl hooks that start/stop network-online.target

Offline

#3 2016-10-08 23:24:16

LindyBalboa
Member
Registered: 2016-10-06
Posts: 39

Re: [Solved] Netcl service blocks while connecting at startup

Turning on auto switching did the trick. Would you mind explaining the significance of those hooks? By reading the wiki I could see how it might be useful in some cases, but why switch it on just because? And if so, why wouldn't that be the default?

Offline

#4 2016-10-09 11:51:55

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: [Solved] Netcl service blocks while connecting at startup

If your system is running fine, you don't need to add the hooks - which is why I said "may". They're only needed if you have to run something that requires network access and fails if there is no access.

Offline

#5 2016-10-09 14:12:11

LindyBalboa
Member
Registered: 2016-10-06
Posts: 39

Re: [Solved] Netcl service blocks while connecting at startup

Okay thanks. I will leave that out for now then. Other fix works great though. Closing smile

Offline

Board footer

Powered by FluxBB