Skip to contentSkip to conversation

syslog time problem

DISCUSSION James Roy 2 participants 2 messages Mar 22, 2007 – Mar 23, 2007

lore
Share & tools
lore

James Roy

author
#0 lore raw

Where does syslog get it's idea of time?

After manually updating /etc/localtime to account for the recent DST change, the other daemons get the message after a restart and figure time correctly. But the -- MARK -- entries from syslogd are still wrong, in spite of it being restarted regularly from cron. This behaviour is consistant across several old 2.2.xx machines. What am I missing here??

Signature · 1 line
Jim Roy
#1 lore raw
Quoted 1 line · James Roy

Where does syslog get it's idea of time?

It depends upon exactly which syslogd you are using, but they normally just use libc functions (e.g. ctime).

Quoted 6 lines

After manually updating /etc/localtime to account for the recent DST change, the other daemons get the message after a restart and figure time correctly. But the -- MARK -- entries from syslogd are still wrong, in spite of it being restarted regularly from cron. This behaviour is consistant across several old 2.2.xx machines. What am I missing here??

Have you checked that syslogd is actually getting restarted? It should generate a log entry upon restart. Note that you actually have to kill the old process and start a new one; sending it SIGHUP won't work.

Signature · 1 line
Glynn Clements <[email protected]>