Subject: Re: socklog-unix problem, on netbsd
To: None <misc@list.smarden.org, tech-kern@netbsd.org>
From: George Georgalis <george@galis.org>
List: tech-kern
Date: 01/23/2006 11:23:04
On Mon, Jan 23, 2006 at 01:17:46PM +0000, Gerrit Pape wrote:
>On Sat, Jan 21, 2006 at 12:16:10AM -0500, George Georgalis wrote:
>> I've narrowed this as much as I can, but I cannot
>> determine why my socklog-unix process is not working
>> under NetBSD 3.0. A few times before I've give up at
>> this point... socklog-klog works fine.
>
>> it starts okay...
>> 
>> # cat /var/log/socklog/main/current                                                   
>> listening on /dev/log, gid=39, uid=32767, starting.
>
>> But it won't log anything. /dev/log does indeed seem
>> the socket syslogd uses, and syslogd is defiantly
>> stopped (though it does work when running). Below is
>> the output of "truss logger hello" -- any ideas?
>
>Hi, according to
>
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/syslog.h?rev=1.27&content-type=text/x-cvsweb-markup
>
>it might well be /var/run/log instead of /dev/log.  `grep _PATH_LOG
>/usr/include/sys/syslog.h` should tell you for your system.

Sorta, but that's what I needed....

# find /dev /var -iname log -exec ls -ld \{\} \;
srwxrwxrwx  1 root  wheel  0 Jan 23 10:55 /dev/log
drwxr-xr-x  3 root  wheel  512 Jan 22 15:41 /var/db/pkg.refcount/dirs/var/log
drwxr-xr-x  8 root  wheel  1024 Jan 22 19:59 /var/log

# grep _PATH_LOG /usr/src/sys/sys/syslog.h
#define _PATH_LOG       "/var/run/log"

# ln -s /dev/log  /var/run/log

works.

Thanks,
// George

-- 
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george@galis.org