[SunHELP] Syslog doesn't work...

Takacs Istvan istvan.takacs at hungax.com
Tue Sep 3 09:24:55 CDT 2002


Hi,

> test28# logger -p daemon.notice test
> test28# tail /var/adm/messages
> Sep  2 19:03:53 test28 root: [ID 702911 daemon.notice] test
> test28# 

Many thanks you gentle folks for all of your help, but 
I'm afraid none of these had worked at all... :_-(

At last I tried this syslog.conf entry:

*	/var/adm/messages
or
*.*	/var/adm/messages
than
# logger -p daemon.notice test

but nothing had happend...:((

In my depths of despair I used the good ol' truss:
and here's the mystyrious output:

truss /usr/sbin/syslogd -f /etc/syslog.conf

[...]
lwp_create(0xFF00FA90, LWP_DETACHED|LWP_SUSPENDED, 0xFF1D3DB8) = 7
lwp_create()    (returning as new lwp ...)      = 0
lstat("/var/run", 0xFFBEFCB8)                   = 0
open("/etc/default/syslogd", O_RDONLY)          Err#2 ENOENT
getrlimit(RLIMIT_NOFILE, 0xFFBEFCB0)            = 0
setrlimit(RLIMIT_NOFILE, 0xFFBEFCB0)            = 0
close(3)                                         Err#9 EBADF
close(4)		                            Err#9 EBADF
close(5)            		                Err#9 EBADF
close(6)                                        Err#9 EBADF
close(7)                                        Err#9 EBADF
[...]
close(1022)                                     Err#9 EBADF
close(1023)                                     Err#9 EBADF
close(1024)                                     Err#9 EBADF
fork1()                                         = 25866
lwp_cond_wait(0xFF0F5550, 0xFF0F5560, 0xFF0EEDB8) = 0
lwp_cond_wait(0xFF0F5550, 0xFF0F5560, 0xFF0EEDB8) = 0
lwp_cond_wait(0xFF0F5550, 0xFF0F5560, 0xFF0EEDB8) = 0
lwp_mutex_wakeup(0xFF0F5560)                    = 0
lwp_mutex_lock(0xFF0F5560)                      = 0
lwp_mutex_lock(0xFF0F5560)                      = 0
lwp_mutex_lock(0xFF0F5560)                      = 0
llseek(0, 0, SEEK_CUR)                          = 84590
_exit(0)
#

Could you explain please, what do all of these mean?

Thanks in advance!

Regards;

		Istvan



More information about the SunHELP mailing list