GM> 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?

    GM> The man page documents that the file should be
    GM> /etc/dhcpc/dhcpcd-<interface>.exe, which shouldn't be a
    GM> problem... dhcpcd is normally a symlink to dhcpd.  You could check
    GM> that, though.  How do you know it's not getting run?  Have you tried
    GM> to 'stat' the file, to see if it was accessed?

I modified my script to create a file in /tmp in order to prove whether it is
executed.  The file is create if I execute the script manually but never
executed when I 'ifup' the interface.

    >> 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?

    GM> Could be because:
    GM>     if [ -n "${DHCP_HOSTNAME}" ]; then
    GM>        PUMPARGS="-h ${DHCP_HOSTNAME}" DHCPCDARGS="-h
    GM>        ${DHCP_HOSTNAME}"
    GM>     fi
    GM> if you have a DHCP_HOSTNAME, any previously set options are lost.

    GM> Instead, if you set PEERDNS=no, then dhcpcd will not rewrite your
    GM> resolv.conf file.

I do not believe I am seting DHCP_HOSTNAME but I will check it.  Otherwise, I
will look into PEERDNS.

Thanks!

...Jake

    GM> --
    GM> If I had a dollar for every brain that you don't have,
    GM>         I'd have one dollar. - Squidward to SpongeBob



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

-- 
Jake Colman                     

Principia Partners LLC                  Phone: (201) 946-0300
Harborside Financial Center               Fax: (201) 946-0320
902 Plaza Two                          E-mail: [EMAIL PROTECTED]
Jersey City, NJ 07311                  www.principiapartners.com



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to