Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2002 14:01:46 -0500
From:      "Miroslav Pendev" <pendev@hotmail.com>
To:        questions@freebsd.org
Subject:   Re: Remove DHCP copyright msg from console display.
Message-ID:  <F185OxmQpRXmTY94jh90000c602@hotmail.com>

next in thread | raw e-mail | index | archive | help
>man dhcpd(8) says
>
>        When starting dhcpd up from a system startup script        it may 
>not be desirable to print out the  entire
>        copyright  message  on  startup. To avoid printing this
>        message, the -q flag may be specified.
>
>I started DHCPD this way
>/usr/local/etc/rc.d/isc-dhcpd.sh start -q
>
>This is what comes out with or without the -q.
>
>Internet Software Consortium DHCP Server V3.0.1rc6
>Copyright 1995-2001 Internet Software Consortium.
>All rights reserved.
>For info, please visit http://www.isc.org/products/DHCP
>Wrote 1 leases to leases file.
>Listening on BPF/xl0/00:01:02:2f:c3:00/10.0.10.0/29
>Sending on   BPF/xl0/00:01:02:2f:c3:00/10.0.10.0/29
>Sending on   Socket/fallback/fallback-net
>
>Looking at the script isc-dhcpd.sh I can not see where the second varuable 
>is -q is read by the script.
>
>Is this a bug?
>How can I get rid of the copyright msg?

I am using the following as start up script
for the DHCP server. Just add  -d at the end of the last line.

Of course, edit this and put your locations and interface.

/usr/local/etc/rc.d/dhcpd.sh

#!/bin/sh
#
#   DHCP StartUp script
#   Mikel King
#
#        <Shadow/>
#

DHCPD="/usr/local/sbin/dhcpd"
CFG="/etc/rc.dhcpd"
iif="xl1"

${DHCPD} -cf ${CFG} ${iif}


----
the last row must be:
${DHCPD} -cf ${CFG} ${iif} -d

Hope that helps

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F185OxmQpRXmTY94jh90000c602>