NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: best way of logging on flash based systems
On Sun, 13 Apr 2008, matthew sporleder wrote:
> ftp.info /var/log/xferlog
>
> # rm xferlog
> # ls -l xfer*
> ls: xfer*: No such file or directory
> # /etc/rc.d/syslogd restart
> Stopping syslogd.
> Starting syslogd.
> # ls -l xfer*
> -rw-r--r-- 1 root wheel 0 Apr 13 22:10 xferlog
>
> I think you need to have syslogd=YES in your rc.conf before any of the
> other stuff for that trick to work.
syslogd=YES is the default (in /etc/defaults/rc.conf).
I can't repeat that.
tx:work$ cd /var/log
tx:log$ grep xferlo /etc/syslog.conf
ftp.info /var/log/xferlog
tx:log$ ls -l xferlog
-rw------- 1 root wheel 0 Nov 8 02:00 xferlog
tx:log$ sudo rm xferlog
tx:log$ ls -l xferlog
ls: xferlog: No such file or directory
tx:log$ sudo /etc/rc.d/syslogd restart
Stopping syslogd.
Waiting for PIDS: 17960.
Starting syslogd.
tx:log$ ls -l xferlog
ls: xferlog: No such file or directory
I have:
tx:log$ ident /etc/rc.d/syslogd
/etc/rc.d/syslogd:
$NetBSD: syslogd,v 1.15 2004/10/11 13:29:52 lukem Exp $
tx:log$ ident /usr/sbin/syslogd
/usr/sbin/syslogd:
$NetBSD: crt0.c,v 1.5 2007/09/27 10:51:18 dogcow Exp $
$NetBSD: syslogd.c,v 1.84 2006/11/13 20:24:00 christos Exp $
$NetBSD: utmpentry.c,v 1.13 2008/03/08 22:41:03 dholland Exp $
And when I looked at this last week with debugging I saw message about
missing log file. Again I do it with debugging:
cfline("ftp.info
/var/log/xferlog", f, "*", "*")
syslogd: /var/log/xferlog: No such file or directory
(I think that error should be reported without debugging too.)
Home |
Main Index |
Thread Index |
Old Index