Re: can't seem to get syslog working



Hi Martin,
Thanks for the reply - I've got a bit further now but I'm still a bit bemused.

Basically if I use syslogd as automatically started up by my EL4 system I get nothing logged at all, however if I kill off syslogd and manually restart it then logging works fine (so my program and syslog.conf are fine!).

I had wondered (however unlikely!) if it was something to do with the -m 0 option (which is set in my /etc/sysconfig/syslog) but manually starting syslogd works whether I've added this option or not.

When I got logging working by manually launching syslogd the logging will also stop if I then try and restart syslogd with "/sbin/service syslog restart" so it definitely seems to be something to do with the startup mechanism on my system. Unfortunately I don't actually know how syslogd is launched on EL4 - if I do a find in /etc the only references are in syslog.conf and /etc/sysconfig/syslog.

Regards



Martin Blume wrote:
"munky" schrieb
[program's syslog entries do not appear]

hmm, looks ok to me (after a cursory reading).

Do entries generated with "logger" turn up?

You said that /var/log/mesages is "resolutely empty".
Does that mean that /var/log/messages is completely empty or that
only your program's output fails to show up?

Regards
Martin



.



Relevant Pages

  • Re: syslogd not logging messages from remote host
    ... Did you restart syslogd after making this change? ... The logger command, as well as anything using the syslogfunction on ... a message from the kernel - that's probably not relevant though. ...
    (comp.unix.bsd.freebsd.misc)
  • syslogd fails to start after dist-upgrade(sarge)
    ... Why does syslogd need a services entry if logging is being done locally? ... services file messed up during the upgrade? ... colin@spanky~/$invoke-rc.d sysklogd restart ...
    (Debian-User)
  • Re: syslogd with log files in /tmp
    ... lsof), but after I restart it with ... # /etc/rc.d/syslogd restart ... maybe this is because syslogd is started before tmpmfs is ... Matthias Apitz ...
    (freebsd-current)
  • Re: System logging not working.
    ... Sep 28 12:30:35 duzi syslogd 1.3-0: restart. ... [root@duzi anton]# cat /var/run/syslogd.pid ...
    (comp.os.linux.setup)
  • Re: syslogd with log files in /tmp
    ... lsof), but after I restart it with ... # /etc/rc.d/syslogd restart ... maybe this is because syslogd is started before tmpmfs is ... Matthias Apitz ...
    (freebsd-current)