My setup is working so I really shouldn't try to fix something that
isn't broken but it's bugging me.
On bootup, the /etc/rc.d/rc.inet1 is called only once.
Inside this script, I have put
ps axu | grep dhcpcd | grep -v grep
echo "Starting DHCP for eth0"
/sbin/dhcpcd eth0
echo "Starting DHCP for eth1"
/sbin/dhcpcd eth1
ps axu | grep dhcpcd | grep -v grep
this shows that there are no dhcpcd processes at the start and four
dhcpcd processes after.
the second ps shows
171 /sbin/dhcpcd eth0
174 /sbin/dhcpcd eth0
177 /sbin/dhcpcd eth1
182 /sbin/dhcpcd eth1
You can see that the script isn't being duplicated somewhere or the pid
order would show eth0, eth1, eth0, eth1.
/etc/dhcpc/dhcpcd-eth0.pid contains 174
/etc/dhcpc/dhcpcd-eth1.pid contains 182
It doesn't matter if I kill 171 or 174, eth0 will still lose its
address. (The same goes for eth1)
HOWEVER...
killall dhcpcd
/sbin/dhcpcd eth0
/sbin/dhcpcd eth1
gives both interfaces their addresses back but only results in one
process for each.
Hmmm
Any ideas?
|