LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Debug info by inet1 during boot (https://www.linuxquestions.org/questions/slackware-14/debug-info-by-inet1-during-boot-486056/)

BroX 09-22-2006 03:03 PM

Debug info by inet1 during boot
 
I get the following lines during boot:
Code:

Info, MAC address = xx:xx:xx:xx:xx:xx
Debug, broadcasting DHCP_DISCOVER
Debug, broadcastAddr option is missing in DHCP server response.
Assuming x.x.x.x
Debug, dhcpIPaddrLeaseTime=604800 in DHCP server response.
Debug, DHCP_OFFER received from  (x.x.x.x)
Debug, broadcasting DHCP_REQUEST for x.x.x.x
Debug, dhcpIPaddrLeaseTime=604800 in DHCP server response.
Debug, DHCP_ACK received from  (x.x.x.x)
Debug, broadcasting ARPOP_REQUEST for xxx.xxx.x.xxx
Info, verified x.x.x.x address is not in use
Info, your IP address = x.x.x.x
Debug, orig hostname = xxxxx

Isn't that a bit too much? I mean, just the "Info" messages would suffice. The rest could go in a log. I checked /etc/rc.d/rc.inet1, and I guess these are the responsible lines:
Code:

###########
# LOGGING #
###########

# If possible, log events in /var/log/messages:
if [ -f /var/run/syslogd.pid -a -x /usr/bin/logger ]; then
  LOGGER=/usr/bin/logger
else # output to stdout/stderr:
  LOGGER=/bin/cat
fi

Both /var/run/syslogd.pid and /usr/bin/logger are present, so wouldn't that mean that the messages should go to /var/log/messages instead of on the screen during boot? Or am I missing something?

Cheers, Leon.

Woodsman 09-23-2006 03:09 PM

Quote:

The rest could go in a log.
They are in the logs. Check /var/log/messages or /var/log/syslog. I have my /etc/syslog.conf configured to send all dchcpc output to its own log (see the man page) and all the messages you posted are in that log. The DEBUG feature is for immediate feedback on screen.

Quote:

Or am I missing something?
If you do not need to debug your rc.inet scripts, then disable the debug function (DEBUG_ETH_UP="no") in rc.inet1.conf. :)

BroX 09-24-2006 03:18 AM

Quote:

Originally Posted by Woodsman
If you do not need to debug your rc.inet scripts, then disable the debug function (DEBUG_ETH_UP="no") in rc.inet1.conf. :)

I have that set to "no" already.

I had a look at /etc/syslog.conf. How can I modify it so that the rc.inet debug info does not appear on the screen but only in /var/log/messages and/or /var/log/syslog?

Cheers, Leon.

Alien Bob 09-24-2006 07:44 AM

You can't, because rc.inet1 will be run several times by UDEV or hotplug before the syslog daemon has even been started. In that case, message will be spilled out onto the screen.

Eric

BroX 09-24-2006 11:59 AM

Quote:

Originally Posted by Alien Bob
You can't, because rc.inet1 will be run several times by UDEV or hotplug before the syslog daemon has even been started. In that case, message will be spilled out onto the screen.

Eric

Thanks. Ok, then I'll rest my case and live with those boot messages ;-)

Cheers, Leon.


All times are GMT -5. The time now is 08:46 PM.