Question about the dhcp3-server script
Jay Ridgley
jridgley2 at austin.rr.com
Tue Feb 16 03:13:23 UTC 2010
Folks,
In my efforts to figure out what is wrong with my dhcpd.conf file setup. Prior
post Re: Connecting a Wireless Router to a Wired Network - latest data - still
problems. I was looking at the /etc/init.d/dhcp3-server script. In it, I found
the following:
test_config()
{
if ! /usr/sbin/dhcpd3 -t -cf $CONFIG_FILE > /dev/null 2>&1; then
echo "dhcpd self-test failed. Please fix the config file."
echo "The error was: "
/usr/sbin/dhcpd3 -t -cf $CONFIG_FILE 2>&1| sed '1,4d'
exit 1
fi
}
Am I correct in my thinking that if I were to run just the line:
sudo /usr/sbin/dhcpd3 -t -cf /etc/dhcp3/dhcpd.conf 2>&1|sed '1,4d'
that it would would examine my dhcpd.conf file an report any basic errors it
finds in the way dhcp3-server is to be set up?
Regards,
Jay
--
Jay Ridgley
jridgley2 at austin.rr.com
Registered Linux User ID - 9115
Registered Ubuntu User ID - 23320
More information about the ubuntu-users
mailing list