Date: Wed, 27 Feb 2002 12:11:11 -0500 From: "Joe & Fhe Barbish" <barbish@a1poweruser.com> To: "Eric Six" <erics@sirsi.com> Cc: "FBSDQ" <questions@FreeBSD.ORG>, <scott.mitchell@mail.com> Subject: RE: Remove DHCP copyright msg from console display. Message-ID: <LPBBIGIAAKKEOEJOLEGOIEBDCJAA.barbish@a1poweruser.com> In-Reply-To: <DC32C8CEB3F8D311B6B5009027DE5AD503D208B6@stlmail.dra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
dhcpd_options= -q gives a error -q: not found dhcpd_options=-q gives no error but the copyright is still there. Any other ideas? -----Original Message----- From: Eric Six [mailto:erics@sirsi.com] Sent: Wednesday, February 27, 2002 11:39 AM To: 'Joe & Fhe Barbish' Subject: RE: Remove DHCP copyright msg from console display. dhcpd_options= # command option(s) to dhcpd_options= -q # command options. Command line options. Cheers, Eric -----Original Message----- From: Joe & Fhe Barbish [mailto:barbish@a1poweruser.com] Sent: Wednesday, February 27, 2002 10:37 AM To: Eric Six Subject: RE: Remove DHCP copyright msg from console display. Thanks for the info, but I can not find what you are talking about. Here is the srcipt. Can you point out where to make the chage? Thanks Joe #! /bin/sh # # $FreeBSD: ports/net/isc-dhcp3/files/isc-dhcpd.sh.sample,v 1.4 2001/10/15 13:33:15 roam Exp $ # # Start or stop isc-dhcpd. # rc_file=${0##*/} rc_arg=$1 # override these variables in ${PREFIX}/etc/rc.isc-dhcpd.conf dhcpd_options= # command option(s) dhcpd_ifaces= # ethernet interface(s) if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then echo "${rc_file}: Cannot determine PREFIX." >&2 echo "Please use the complete pathname." >&2 exit 64 fi rcconf_dir=${PREFIX}/etc rcconf_file=rc.${rc_file%.sh}.conf rcconf_path=${rcconf_dir}/${rcconf_file} if [ -f ${rcconf_path} ]; then . ${rcconf_path} fi program_dir=${PREFIX}/sbin program_file=dhcpd program_path=${program_dir}/${program_file} config_dir=${PREFIX}/etc config_file=${program_file}.conf config_path=${config_dir}/${config_file} pid_dir=/var/run pid_file=${program_file}.pid pid_path=${pid_dir}/${pid_file} syslog_facility=daemon.err case "$rc_arg" in start) if [ ! -x ${program_path} ]; then logger -sp ${syslog_facility} -t ${program_file} \ "unable to start: ${program_path} is missing." exit 72 fi if [ ! -f ${config_path} ]; then logger -sp ${syslog_facility} -t ${program_file} \ "unable to start: ${config_path} is missing." exit 72 fi ${program_path} ${dhcpd_options} ${dhcpd_ifaces} && echo -n " ${program_file}" ;; stop) if [ -r ${pid_path} ]; then kill $(cat ${pid_path}) 2> /dev/null else killall ${program_file} 2> /dev/null fi ;; restart) $0 stop $0 start ;; status) ps -auxww | egrep ${program_file} | egrep -v "($0|egrep)" ;; *) echo "usage: ${rc_file} {start|stop|restart|status}" >&2 exit 64 ;; esac exit 0 -----Original Message----- From: Eric Six [mailto:erics@sirsi.com] Sent: Wednesday, February 27, 2002 11:10 AM To: 'Joe & Fhe Barbish'; FBSDQ Subject: RE: Remove DHCP copyright msg from console display. You need to edit the /usr/local/etc/rc.d/isc-dhcpd.sh file and add the -q to the $START) section where it actually calls the binary for dhcpd to start. Eric -----Original Message----- From: Joe & Fhe Barbish [mailto:barbish@a1poweruser.com] Sent: Wednesday, February 27, 2002 10:07 AM To: FBSDQ Subject: Remove DHCP copyright msg from console display. 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? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message 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?LPBBIGIAAKKEOEJOLEGOIEBDCJAA.barbish>