From owner-freebsd-stable Sat Feb 26 2:53:40 2000 Delivered-To: freebsd-stable@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id E3EB637BEAC for ; Sat, 26 Feb 2000 02:53:35 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 26 Feb 2000 10:53:34 +0000 (GMT) To: gerti-freebsds@bitart.com Cc: freebsd-stable@freebsd.org Subject: Re: inetd -l does not log In-reply-to: Your message of "Sat, 26 Feb 2000 04:20:29 CST." <20000226102030.26849.qmail@camelot.bitart.com> X-Request-Do: Date: Sat, 26 Feb 2000 10:53:34 +0000 From: David Malone Message-ID: <200002261053.aa90559@salmon.maths.tcd.ie> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I have this in my syslog.conf *amingst other things): > > !inetd > *.* /dev/console > > And I did HUP syslogd. killed inetd, and run it 'by hand' using 'inetd -d -l > -w -W'. No dice. One thing that isn't immediately obvious is that the logging is controled by tcp wrappers code if the service is wrapped. However you should ger log messages anyway. It seems to work for me on 3.4: walton# cat /tmp/inetd.conf dbbrowse stream tcp nowait dwmalone /bin/cat /etc/fstab walton# inetd -d -w -W -l /tmp/inetd.conf ADD : dbbrowse proto=tcp accept=1 max=0 user=dwmalone group=(null) class=daemon builtin=0x0 server=/bin/cat inetd: enabling dbbrowse, fd 4 inetd: registered /bin/cat on 4 inetd: someone wants dbbrowse inetd: accept, ctrl 6 inetd: + closing from 5 inetd: 89797 execl /bin/cat inetd: Handling signal flag C inetd: 89797 reaped, status 0 ^C walton# tail /var/log/tcp_log | fgrep 89797 Feb 26 10:44:00 walton inetd[89797]: connection from slip2.maths.tcd.ie, service cat (tcp) walton# tail -1 /etc/hosts.allow ALL: ALL : rfc931 2 : severity local0.info : setenv WRAP_INFO %s_%c : allow walton# fgrep tcp_log /etc/syslog.conf local0.debug /var/log/tcp_log David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message