RE: NetReg: DHCP refresh problems

New Message Reply Date view Thread view Subject view Author view Attachment view

From: Calissa J Lazowicki (CLazowic@mnsfld.edu)
Date: Thu Dec 18 2003 - 15:11:56 CST


Patrick,

The fix below worked for me as well :) the files are refreshing every
minute like they are supposed to :) thank you once again for your
help... you really are awesome!!

netreg is running great for me, except when i try to start dhcpd it
wants to read the conf file from /etc/dhcpd.conf instead of
/etc/dhcpd/dhcpd.conf, if i manually make a copy of the
/etc/dhcpd/dhcpd.conf file in the /etc directory everything is
wonderful, but i shouldn't have to do this... the path in variables.pl
is correct it states:

$DHCPDCONFPATH = "/etc/dhcpd";
$DHCPDCONFFILE = "dhcpd.conf';

File permissions may be an issue... is there somewhere else i need to
change the path?

is there something that i am missing?

Thanks again for all of your help!

Calissa

On Wed, 2003-12-17 at 20:12, Patrick Jaques wrote:
> Hi Mike,
>
> I have encountered this same problem with Red Hat 9.0 Linux. The problem is
> that the process id returned from the 'ps aux' command does not matching the
> process id in /var/run/dhcpd.pid. The 'ps aux' command returns two process
> ids, which causes it not to match the process id in dhcpd.pid. I never
> encountered this problem until I upgraded to Red Hat version 9.0. The
> attached script fixes the problem.
>
> Add 'grep -v refresh-dhcpdconf|' to the two 'ps aux' command lines in the
> refresh-dhcpdconf script. This will resolve the problem. See the below
> example:
>
> if [ "`ps aux|grep dhcpd|grep -v grep|grep -v refresh-dhcpdconf|awk '{print
> $2}'`" != "`cat /var/run/dhcpd.pid`" ]; then
>
> -- Patrick
>
>
> -----Original Message-----
> From: owner-netreg@southwestern.edu [mailto:owner-netreg@southwestern.edu]
> On Behalf Of Michael Stella
> Sent: Wednesday, December 17, 2003 7:15 PM
> To: netreg@southwestern.edu
> Subject: RE: NetReg: DHCP refresh problems
>
>
> Hello!
>
> I seem to be having this same issue. I tried the change below but there
> seemed to be no effect. I've been able to determine that the clients are
> registering OK - the refresh script swaps in the dhcp.conf.new to dhcp.conf
> - then restarts the server just fine. Then I assume I am seeing the problem
> below as the script then copies dhcpd.conf to dhcpd.conf.bad and the
> dhcpd.conf.bak file into dhcp.conf and tries to start the server without
> stopping it first. (If I run the script by hand I can see this happening).
> Then it even complains that it has a fatal error and can't start anything
> even though DHCP is up and working fine.
>
> I made the changes below but that didn't seem to help. I am running Netreg
> on Redhat 9.
>
> Any ideas?
>
> Thanks in advance!
> -Mike
>
> ****************************
> Michael Stella
> Network Services Administrator
> michael.stella@regiscollege.edu
> Voice: 781-768-7176
> Fax: 781-768-7344
>
> -----Original Message-----
> From: owner-netreg@southwestern.edu [mailto:owner-netreg@southwestern.edu]
> On Behalf Of Brad Pinkston
> Sent: Thursday, December 04, 2003 11:42 AM
> To: netreg@southwestern.edu
> Subject: NetReg: DHCP refresh problems
>
> It seems as though people are having trouble using the refresh-dhcpdconf
> script with other packages. There are a couple of tweaks to the script that
> may help solve these problems.
>
> Edit the file and change your paths to all dhcpd.conf files. Then change
> the line:
>
> if [ "`ps aux|grep dhcpd|grep -v grep|awk '{print $2}'`" != "`cat
> /var/run/dhcpd.pid`" ]; then
>
> to
>
> if [ "`ps axc|grep dhcpd|grep -v grep|awk '{print $1}'`" != "`cat
> /var/run/dhcpd.pid`" ]; then
>
> It seems this pid file and current running pid aren't matching up correctly.
> I experienced this with Redhat Enterprise v3.
>
> This has not been tested on any other platforms and should not be considered
> failsafe until you test all possible scenarios yourself.
>
> Hope it helps.
>
> Brad Pinkston
> Firewall/Network Administrator
> Checkpoint CCSA
> Centenary College of LA
> (318) 869-5721
> bpinksto@centenary.edu
>
>
>
> --------------------------------------------------------------------
> This email has been scanned for viruses by Centenary College of LA
>
> **********************************************************************
> To unsubscribe from this list, send an e-mail message to
> majordomo@southwestern.edu containing a single line with the words:
> unsubscribe netreg Send requests for assistance to:
> owner-netreg@southwestern.edu
> **********************************************************************
>
> **********************************************************************
> To unsubscribe from this list, send an e-mail message to
> majordomo@southwestern.edu containing a single line with the words:
> unsubscribe netreg Send requests for assistance to:
> owner-netreg@southwestern.edu
> **********************************************************************

**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************


New Message Reply Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:42 CDT