dhcpcd script on SuSE 8.1
Hi, I'm tearing my hair out trying to get dhcpcd to run the dhcpcd.exe script on SuSE 8.1. I had this working on SuSE 8.0 without any problems. On 8.1 I have tried about everything to get it to run but to no avail. The script is to refresh my IP address at DynDNS.org. Has anyone managed to get a script running on this version of SuSE? If what are the magic steps. -- Thanks, Graham Smith ---------------------------------------------------------
On Tue, Jan 07, 2003 at 09:26:33PM +1100, Graham Smith wrote:
Hi,
I'm tearing my hair out trying to get dhcpcd to run the dhcpcd.exe script on SuSE 8.1.
I had this working on SuSE 8.0 without any problems. On 8.1 I have tried about everything to get it to run but to no avail.
The script is to refresh my IP address at DynDNS.org.
Has anyone managed to get a script running on this version of SuSE? If what are the magic steps.
Where did you put the script? Did you follow the comment in /etc/sysconfig/network/dhcp? There is a setting called DHCLIENT_SCRIPT_EXE. Peter
On Tue, 7 Jan 2003 22:30, poeml@cmdline.net wrote:
On Tue, Jan 07, 2003 at 09:26:33PM +1100, Graham Smith wrote:
Hi,
I'm tearing my hair out trying to get dhcpcd to run the dhcpcd.exe script on SuSE 8.1.
I had this working on SuSE 8.0 without any problems. On 8.1 I have tried about everything to get it to run but to no avail.
The script is to refresh my IP address at DynDNS.org.
Has anyone managed to get a script running on this version of SuSE? If what are the magic steps.
Where did you put the script? Did you follow the comment in /etc/sysconfig/network/dhcp? There is a setting called DHCLIENT_SCRIPT_EXE.
Peter
I have tried with /etc/sysconfig/network/scripts/dhcpcd.exe as per their dhcp config doc. In the package/dhcpcd directory README.SuSE contains the following:- Path changes: - dhcpcd cache/info files are in /var/lib/dhcpcd/, not in /etc/dhcpc/ (before 7.3 the path was /var/state/dhcp/) - dhcpcd-<interface>.exe scripts to be called by dhcpcd will be looked for in /sbin, not /etc/dhcpc/ So I tried there without any luck. Then in desperation I added in dhcp DHCLIENT_ADDITIONAL_OPTIONS="-c /var/lib/dhcpcd/dhcpcd.exe" without luck as well as DHCLIENT_ADDITIONAL_OPTIONS="-c /var/lib/dhcpcd" The question is with the -c option is it the full path only or full path + executable? In SuSE 8.0 the script was located in /var/lib/dbcpcd by default and followed the man pages. I have the dam script located in about 20 places and still I can't get it called. I have 'set -x' in the script so I should get some output if called. -- Regards, Graham Smith ---------------------------------------------------------
On Tue, Jan 07, 2003 at 11:18:55PM +1100, Graham Smith wrote:
I have tried with /etc/sysconfig/network/scripts/dhcpcd.exe as per their dhcp config doc.
In an attempt to recreate your problem I have copied (in a default setup) /usr/share/doc/packages/dhcpcd/dhcpcd.exe to /etc/sysconfig/network/scripts/dhcpcd.exe, and when renewing the lease I see a message Jan 7 15:16:25 cube dhcpcd.exe: interface eth0 has been configured with old IP=[...] If the script is not executable, it logs Jan 7 15:12:29 cube dhcpcd[11182]: error executing "/etc/sysconfig/network/scripts/dhcpcd.exe /var/lib/dhcpcd//dhcpcd-eth0.info up": Permission denied So _some_thing should be logged, unless the script is not found.
In the package/dhcpcd directory README.SuSE contains the following:- Path changes: - dhcpcd cache/info files are in /var/lib/dhcpcd/, not in /etc/dhcpc/ (before 7.3 the path was /var/state/dhcp/) - dhcpcd-<interface>.exe scripts to be called by dhcpcd will be looked for in /sbin, not /etc/dhcpc/
The path mentioned here wasn't up to date, but the comment in the configuration file is.
So I tried there without any luck. Then in desperation I added in dhcp DHCLIENT_ADDITIONAL_OPTIONS="-c /var/lib/dhcpcd/dhcpcd.exe"
The above line works as well, over here.
without luck as well as DHCLIENT_ADDITIONAL_OPTIONS="-c /var/lib/dhcpcd"
The question is with the -c option is it the full path only or full path + executable?
A filename.
In SuSE 8.0 the script was located in /var/lib/dbcpcd by default and followed the man pages.
I have the dam script located in about 20 places and still I can't get it called. I have 'set -x' in the script so I should get some output if called.
Don't you use logger? Peter
On Wed, 8 Jan 2003 01:27, poeml@cmdline.net wrote:
On Tue, Jan 07, 2003 at 11:18:55PM +1100, Graham Smith wrote:
I have tried with /etc/sysconfig/network/scripts/dhcpcd.exe as per their dhcp config doc.
In an attempt to recreate your problem I have copied (in a default setup) /usr/share/doc/packages/dhcpcd/dhcpcd.exe to /etc/sysconfig/network/scripts/dhcpcd.exe, and when renewing the lease I see a message
Jan 7 15:16:25 cube dhcpcd.exe: interface eth0 has been configured with old IP=[...]
If the script is not executable, it logs
Jan 7 15:12:29 cube dhcpcd[11182]: error executing "/etc/sysconfig/network/scripts/dhcpcd.exe /var/lib/dhcpcd//dhcpcd-eth0.info up": Permission denied
So _some_thing should be logged, unless the script is not found.
Peter
Thank you Peter, I don't really what was wrong. More than likely the script was being called but the logging was not setup properly. Probably due to changing things many times to see what was wrong. I ended up copying the SuSE dhcpcd.exe from the packages/dhcpcd directory and adding my code to it, and every thing is now working. BTW, I do use logger but I think the statements were incorrect in my earlier versions. You learn something everyday. -- Regards, Graham Smith ---------------------------------------------------------
participants (2)
-
Graham Smith
-
poeml@cmdline.net