Re: [CentOS] Couple of CentOS 5.2 dhcp notes
Hey, On Sun, Jul 6, 2008 at 7:39 PM, Ian Forde <[EMAIL PROTECTED]> wrote: > In fact, here's the output... (IP, hostname, and Mac info changed...) > > [EMAIL PROTECTED] etc]# dhcpd > Internet Systems Consortium DHCP Server V3.0.5-RedHat > Copyright 2004-2006 Internet Systems Consortium. > All rights reserved. > For info, please visit http://www.isc.org/sw/dhcp/ > Wrote 0 leases to leases file. > Listening on LPF/eth0/00:00:de:ad:be:ef/10.0.0/24 > Sending on LPF/eth0/00:00:de:ad:be:ef/10.0.0/24 > Sending on Socket/fallback/fallback-net > [EMAIL PROTECTED] etc]# echo $? > 0 > [EMAIL PROTECTED] etc]# !ps > ps -ef | grep dhcpd > root 15058 11173 0 16:36 pts/000:00:00 grep dhcpd > [EMAIL PROTECTED] etc]# Try to strace it: [EMAIL PROTECTED] etc]# strace -f -tt -s 1024 -o /tmp/dhcpd_strace.txt dhcpd Then check /tmp/dhcpd_strace.txt (I suggest starting from the bottom) and see why it exited or died. The strace might give you a good clue of what happened, and even if it tried to log anything (unsuccessfully?) before being terminated. HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Couple of CentOS 5.2 dhcp notes
On Sun, 2008-07-06 at 19:34 -0400, Marko A. Jennings wrote: > On Sun, July 6, 2008 6:57 pm, Ian Forde wrote: > > 1. Apparently, since I updated from 5.1 to 5.2, dhcpd no longer wants to > > stay running. The config is sound, and I can start it from the > > command-line with the "-d" flag and it serves up leases. But without > > the -d flag, it just silently dies... > > What exit code does it return when you execute it from the command line > without the "-d" flag? 0 In fact, here's the output... (IP, hostname, and Mac info changed...) [EMAIL PROTECTED] etc]# dhcpd Internet Systems Consortium DHCP Server V3.0.5-RedHat Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Wrote 0 leases to leases file. Listening on LPF/eth0/00:00:de:ad:be:ef/10.0.0/24 Sending on LPF/eth0/00:00:de:ad:be:ef/10.0.0/24 Sending on Socket/fallback/fallback-net [EMAIL PROTECTED] etc]# echo $? 0 [EMAIL PROTECTED] etc]# !ps ps -ef | grep dhcpd root 15058 11173 0 16:36 pts/000:00:00 grep dhcpd [EMAIL PROTECTED] etc]# -I ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Couple of CentOS 5.2 dhcp notes
On Sun, July 6, 2008 6:57 pm, Ian Forde wrote: > 1. Apparently, since I updated from 5.1 to 5.2, dhcpd no longer wants to > stay running. The config is sound, and I can start it from the > command-line with the "-d" flag and it serves up leases. But without > the -d flag, it just silently dies... What exit code does it return when you execute it from the command line without the "-d" flag? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Couple of CentOS 5.2 dhcp notes
On Sun, 2008-07-06 at 19:12 -0400, Marko A. Jennings wrote: > On Sun, July 6, 2008 6:57 pm, Ian Forde wrote: > > 1. Apparently, since I updated from 5.1 to 5.2, dhcpd no longer wants to > > stay running. The config is sound, and I can start it from the > > command-line with the "-d" flag and it serves up leases. But without > > the -d flag, it just silently dies... > > Mine has been working without any problems before and after the 5.2 > update. You might want to consider posting your configuration file. Well, I stripped it down as much as I could - same problem exists... (IP addresses and domain name changed, of course...) ddns-update-style none; ignore client-updates; subnet 10.0.0.0 netmask 255.255.255.0 { range dynamic-bootp 10.0.0.101 10.0.0.200; default-lease-time 86400; max-lease-time 604800; option subnet-mask 255.255.255.0; option broadcast-address 10.0.0.255; option routers 10.0.0.1; option domain-name-servers 10.0.0.75, 10.0.0.76; option domain-name "mydomain.com"; } But like I was saying before, if it were a config problem, it wouldn't have been able to start on the command-line in non-daemon mode. Same problem when I downloaded it from www.isc.org (3.0.7) and rolled a source build. So there's definitely something strange (or obvious that I'm missing) going on... -I ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Couple of CentOS 5.2 dhcp notes
On Sun, July 6, 2008 6:57 pm, Ian Forde wrote: > 1. Apparently, since I updated from 5.1 to 5.2, dhcpd no longer wants to > stay running. The config is sound, and I can start it from the > command-line with the "-d" flag and it serves up leases. But without > the -d flag, it just silently dies... Mine has been working without any problems before and after the 5.2 update. You might want to consider posting your configuration file. Marko ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos