I’m curious about which program invokes dhclient on Debian squeeze?
I suspect it’s NetworkManager but it’s not true.
Since I have removed it (apt-get remove NetworkManager) and rebooted the computer.
The dhclient program runs as usual. See:
~$ ps aux|grep dhclient
root 2042 0.0 0.0 2332 532 ? Ss 09:47 0:00 dhclient -v -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
I also grep for dhclient in /etc but there are no sufficient hints (not found the caller).
How is the dhclient program being invoked on Debian Squeeze?
It’s coded in ifupdown.
http://packages.debian.org/stable/ifupdown
Download the souce and
Check the function dhcp_up() :