On 26 Dec 2001, Jake Colman wrote: > 1) I created a script in /etc/dhcpcd/dhcpcd-eth0.exe that should > automatically be executed whenever the link comes up or the lease is > renewed. For some reason, the script simply does not get executed. My > permissions on the script are fine and I can manually execute the scrit > successfully. I know for certain that the script it not being executed. > Why?
The man page documents that the file should be /etc/dhcpc/dhcpcd-<interface>.exe, which shouldn't be a problem... dhcpcd is normally a symlink to dhcpd. You could check that, though. How do you know it's not getting run? Have you tried to 'stat' the file, to see if it was accessed? > 2) I am running a cachine nameserver on my system. I do not want dhcpcd to > rewrite my /etc/resolv.conf with my ISP's nameservers. I know that the > "-R" option to dhcpcd suppresses this. I poked around the variousscripts > and it seems that adding 'export DHCPCDARGS="-R"' to the ifcfg-eth0 file > should have done the trick. But it has no effect. Why? Could be because: if [ -n "${DHCP_HOSTNAME}" ]; then PUMPARGS="-h ${DHCP_HOSTNAME}" DHCPCDARGS="-h ${DHCP_HOSTNAME}" fi if you have a DHCP_HOSTNAME, any previously set options are lost. Instead, if you set PEERDNS=no, then dhcpcd will not rewrite your resolv.conf file. -- If I had a dollar for every brain that you don't have, I'd have one dollar. - Squidward to SpongeBob _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list