You are not logged in.

#1 2013-04-15 15:50:38

djraymondnm
Member
From: Socorro, NM, USA
Registered: 2011-12-28
Posts: 59
Website

systemd fails netctl/wifi-menu connection

If a wireless connection obtained by netctl/wifi-menu is failed by systemd (as discovered
by the command systemctl list-units), fixing the problem and trying to reactivate the
wireless connection doesn't seem to work until the failed status is somehow removed.
This can be done by rebooting, but that is rather brute-force.  Is there some more
elegant way to tell netctl/systemd to remove failed status?

Offline

#2 2013-04-15 15:53:09

mzneverdies
Member
Registered: 2012-02-04
Posts: 147

Re: systemd fails netctl/wifi-menu connection

Haven't tried, but what about reseting netctl service?

# systemctl restart netctl.service

Offline

#3 2013-04-15 17:19:00

djraymondnm
Member
From: Socorro, NM, USA
Registered: 2011-12-28
Posts: 59
Website

Re: systemd fails netctl/wifi-menu connection

mzneverdies wrote:

Haven't tried, but what about reseting netctl service?

Actually, I don't have netctl.service enabled or running, as this is for a laptop
that needs to make network connections on demand.  However, assuming a
profile named "barf", the service that fails after trying to start a connection
with netctl via

netctl start barf

where "barf" has an error in it (non-existent wireless device in this case)
is "netctl@barf.service".  Trying to restart or reenable this doesn't remove
the failed status.  The output of systemctl list-units | grep netctl looks like

netctl@barf.service         loaded failed failed    Networking for netctl profile barf

.

Offline

#4 2013-04-26 06:29:17

Narve
Member
Registered: 2012-07-14
Posts: 4

Re: systemd fails netctl/wifi-menu connection

You can restart the service with netctl.
Assuming your profile is named barf, like you suggested, it'd be:

# netctl restart barf

For further infos I'd suggest consulting the manpage with:

$ man netctl

Offline

#5 2013-04-26 14:03:41

djraymondnm
Member
From: Socorro, NM, USA
Registered: 2011-12-28
Posts: 59
Website

Re: systemd fails netctl/wifi-menu connection

Narve, thanks for the reply.  It turns out that the real issue was that netctl was repeatedly
failing on a particular wireless connection due to a long wait for the dhcp server.  Increasing
the dhcp timeout from 10 s to 30 s solved the problem.  (This doesn't seem to be an option
when starting the connection with wifi-menu, however.)

Offline

Board footer

Powered by FluxBB