Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97063 - net-misc/dhcp-3.0.1-r1: loggin to stderr (option -d) doesn't work
Summary: net-misc/dhcp-3.0.1-r1: loggin to stderr (option -d) doesn't work
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
: 97065 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-25 13:35 UTC by Sascha Silbe
Modified: 2005-12-07 07:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
tries to fix the quiet setup (dhcp-3.0.3-quiet.patch,434 bytes, patch)
2005-12-07 07:46 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2005-06-25 13:35:27 UTC
dhcpd always logs to syslog, even if -d is used.
It also suppresses ANY output to stderr if -q used, not only the copyright message. Will file a different bug about that.


Reproducible: Always
Steps to Reproduce:
1. logger MARK
2. tail -n 1 /var/log/syslog/current
3. /usr/sbin/dhcpd -q -f -d eth0
4. tail -n 1 /var/log/syslog/current
5. logger MARK
6. tail -n 1 /var/log/syslog/current
7. /usr/sbin/dhcpd -f -d eth0
8. tail -n 1 /var/log/syslog/current

Actual Results:  
root@copper:/service/dhcpd-1# logger MARK
root@copper:/service/dhcpd-1# tail -n 1 /var/log/syslog/current 
Jun 25 22:30:39 [root] MARK
root@copper:/service/dhcpd-1# /usr/sbin/dhcpd -q -f -d eth0
root@copper:/service/dhcpd-1# tail -n 1 /var/log/syslog/current 
Jun 25 22:30:57 [dhcpd] exiting.
root@copper:/service/dhcpd-1# logger MARK
root@copper:/service/dhcpd-1# tail -n 1 /var/log/syslog/current 
Jun 25 22:31:06 [root] MARK
root@copper:/service/dhcpd-1# /usr/sbin/dhcpd -f -d eth0
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Warning: subnet 192.168.1.240/28 overlaps subnet 192.168.1.0/24
Can't open lease database /var/lib/dhcp/dhcpd.leases: No such file or directory --
  check for failed database rewrite attempt!
Please read the dhcpd.leases manual page if you
don't know what to do about this.

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
root@copper:/service/dhcpd-1# tail -n 1 /var/log/syslog/current 
Jun 25 22:31:14 [dhcpd] exiting.



Expected Results:  
root@copper:/service/dhcpd-1# logger MARK
root@copper:/service/dhcpd-1# tail -n 1 /var/log/syslog/current 
Jun 25 22:30:39 [root] MARK
root@copper:/service/dhcpd-1# /usr/sbin/dhcpd -q -f -d eth0
Warning: subnet 192.168.1.240/28 overlaps subnet 192.168.1.0/24
Can't open lease database /var/lib/dhcp/dhcpd.leases: No such file or directory --
  check for failed database rewrite attempt!
Please read the dhcpd.leases manual page if you
don't know what to do about this.
root@copper:/service/dhcpd-1# tail -n 1 /var/log/syslog/current 
Jun 25 22:30:39 [root] MARK
root@copper:/service/dhcpd-1# logger MARK
root@copper:/service/dhcpd-1# tail -n 1 /var/log/syslog/current 
Jun 25 22:31:06 [root] MARK
root@copper:/service/dhcpd-1# /usr/sbin/dhcpd -f -d eth0
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Warning: subnet 192.168.1.240/28 overlaps subnet 192.168.1.0/24
Can't open lease database /var/lib/dhcp/dhcpd.leases: No such file or directory --
  check for failed database rewrite attempt!
Please read the dhcpd.leases manual page if you
don't know what to do about this.

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
root@copper:/service/dhcpd-1# tail -n 1 /var/log/syslog/current 
Jun 25 22:31:06 [root] MARK


Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11.10-infra i686)
=================================================================
System uname: 2.6.11.10-infra i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 04:44:51)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.7.9-r1, 1.6.3, 1.9.5, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O2 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/usr/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
LINGUAS="en_US en_GB en de_DE de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/inst/level3/sync/portage-local"
SYNC="rsync://rsync.sascha.silbe.org/gentoo-portage"
USE="x86 acl alsa berkdb bitmap-fonts crypt doc emboss fortran gdbm ipv6 jpeg maildir mbox mp3 nas ncurses nls ogg oggvorbis pam pcmcia png python readline ssl truetype-fonts type1-fonts unicode vorbis xml xml2 zlib linguas_en_US linguas_en_GB linguas_en linguas_de_DE linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-05 12:31:13 UTC
Mass reassign wrt Bug 23718, maintainer being retired.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-12-07 03:23:53 UTC
*** Bug 97065 has been marked as a duplicate of this bug. ***
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-12-07 07:46:10 UTC
Created attachment 74232 [details, diff]
tries to fix the quiet setup
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-12-07 07:46:46 UTC
Please test the above patch against dhcp-3.0.3-r1