You are not logged in.

#1 2012-08-05 21:00:10

Ophidian
Member
Registered: 2012-08-05
Posts: 6

[SOLVED] dhcpcd problem

The dhcpcd client starts automatically at boot, preventing Wicd(i.e.) to set a wireless connection. The same problem results when i try to set a connection from the terminal (obviously) so i have to kill the dhcpcd process with pkill.

Reading in some forums, i found that the problem resides in a script (that i can't find) and suggest to use dhclient instead.
Anyone knows how prevent this to happen?

This is a clean installation from the 2012.07.15 iso

Thanks in advice.

Last edited by Ophidian (2012-08-08 04:58:27)

Offline

#2 2012-08-05 21:09:25

McDoenerKing
Member
From: Germany
Registered: 2010-06-21
Posts: 59

Re: [SOLVED] dhcpcd problem

If you don't want dhcpcd to start at boot, remove it from your Daemons array in /etc/rc.conf. It is usually at the bottom of the file.

Offline

#3 2012-08-05 21:10:42

ebal
Member
From: Athens, Greece
Registered: 2009-05-26
Posts: 224
Website

Re: [SOLVED] dhcpcd problem

network in DAEMONS at /etc/rc.conf


https://balaskas.gr
Linux System Engineer - Registered Linux User #420129

Offline

#4 2012-08-06 03:49:43

Ophidian
Member
Registered: 2012-08-05
Posts: 6

Re: [SOLVED] dhcpcd problem

ebal wrote:

network in DAEMONS at /etc/rc.conf

Tanks for the quick response, but there's something funny; on other installations before the 2012.07.15 there wasn't this issue even if the network daemon wasn't disabled. Putting a "!" before it does the trick but also disables the wlan0, something that didn't happen before.

This isn't "really" a problem, but i'm still wondering if there is another solution for this annoying issue, 'cause a general solution for a particular problem doesn't really makes me feel satisfied. Don't get me wrong, i'd like to know how my system works and have total control over it.   smile

Offline

#5 2012-08-06 03:57:52

Ophidian
Member
Registered: 2012-08-05
Posts: 6

Re: [SOLVED] dhcpcd problem

McDoenerKing wrote:

If you don't want dhcpcd to start at boot, remove it from your Daemons array in /etc/rc.conf. It is usually at the bottom of the file.

In the latest version of the installation media, the rc.conf has lost a lot of importance 'cause the configuration has been now "split" in several scripts, so if you're not upgrading but making a clean installation of the system, you will find this issue because the dhcpcd client is being started i-don't-know-how and i-don't-know-where.

The dhcpcd isn't a daemon, or it is? Do i have to write "!dhcpcd" in the daemon's array even if it's not a daemon?

Last edited by Ophidian (2012-08-06 04:07:40)

Offline

#6 2012-08-06 08:06:01

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] dhcpcd problem

Ophidian wrote:

The dhcpcd isn't a daemon, or it is? Do i have to write "!dhcpcd" in the daemon's array even if it's not a daemon?

Just to clarify this part. There's a distinct difference between the dhcpcd client and dhcpcd server/daemon. Starting the dhcpcd daemon is only necessary when you're running a dhcp server on your Arch machine (providing leases to other hosts in your network).

So bottomline, it's not needed in this case.


Burninate!

Offline

#7 2012-08-06 11:32:40

BKLive
Member
From: Georgia
Registered: 2008-01-28
Posts: 125

Re: [SOLVED] dhcpcd problem

If you are using wicd you should !network in rc.conf and add dbus and wicd in your daemons (dbus first). Unless I don't understand your problem.


Main Arch Setup: HP Pavillion p7-1209, Quad-Core i3-2120 3.3Ghz, 8GB RAM, 1TB HDD, Intel Graphics
Laptop Arch Setup: Gateway lt3103u Netbook, AMD Athlon64 1.2Ghz, 2GB RAM, 250GB HDD, ATI X1270 R600

Offline

#8 2012-08-06 12:52:39

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] dhcpcd problem

Ophidian wrote:
McDoenerKing wrote:

If you don't want dhcpcd to start at boot, remove it from your Daemons array in /etc/rc.conf. It is usually at the bottom of the file.

In the latest version of the installation media, the rc.conf has lost a lot of importance 'cause the configuration has been now "split" in several scripts, so if you're not upgrading but making a clean installation of the system, you will find this issue because the dhcpcd client is being started i-don't-know-how and i-don't-know-where.

This is unlerated. The DAEMONS array is still in rc.conf.

The dhcpcd isn't a daemon, or it is? Do i have to write "!dhcpcd" in the daemon's array even if it's not a daemon?

There is by default a 'network' daemon, which will start dhcpcd if you don't tell it otherwise. If you are using a different networkmanagement daemon, then you should remove 'network' from DAEMONS (as the two daemons will step on eachother's toes).

Offline

#9 2012-08-06 12:56:34

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] dhcpcd problem

Ophidian wrote:

Tanks for the quick response, but there's something funny; on other installations before the 2012.07.15 there wasn't this issue even if the network daemon wasn't disabled. Putting a "!" before it does the trick but also disables the wlan0, something that didn't happen before.

This isn't "really" a problem, but i'm still wondering if there is another solution for this annoying issue, 'cause a general solution for a particular problem doesn't really makes me feel satisfied. Don't get me wrong, i'd like to know how my system works and have total control over it.   smile

There was a change in the network daemon:

Before if you had 'network' enabled, but nothing configured in rc.conf (i.e. interface=, etc were all empty), then the daemon would simply fail with a warning.

We now changed this, so that if you start 'network' without any configuration it will just call dhcpcd (also without any configuration). This means starting dhcpcd on all interfaces.

In short: things used to work because you relied on 'network' failing. Now it does not fail any more, so you get problems. Just pick one network management daemon and you should be fine.

Offline

#10 2012-08-08 05:00:23

Ophidian
Member
Registered: 2012-08-05
Posts: 6

Re: [SOLVED] dhcpcd problem

tomegun wrote:
Ophidian wrote:

Tanks for the quick response, but there's something funny; on other installations before the 2012.07.15 there wasn't this issue even if the network daemon wasn't disabled. Putting a "!" before it does the trick but also disables the wlan0, something that didn't happen before.

This isn't "really" a problem, but i'm still wondering if there is another solution for this annoying issue, 'cause a general solution for a particular problem doesn't really makes me feel satisfied. Don't get me wrong, i'd like to know how my system works and have total control over it.   smile

There was a change in the network daemon:

Before if you had 'network' enabled, but nothing configured in rc.conf (i.e. interface=, etc were all empty), then the daemon would simply fail with a warning.

We now changed this, so that if you start 'network' without any configuration it will just call dhcpcd (also without any configuration). This means starting dhcpcd on all interfaces.

In short: things used to work because you relied on 'network' failing. Now it does not fail any more, so you get problems. Just pick one network management daemon and you should be fine.

whoaaa... thanks.  smile

Offline

Board footer

Powered by FluxBB