Re: Syslog timezone issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Bart Schaefer wrote:
> On Jan 11, 2008 12:13 PM, Filipe Brandenburger <filbranden@xxxxxxxxx> wrote:
>> IIRC, the datestamp is put by the process that is logging, not by syslog
>> itself. Maybe when that process started you hadn't configured the right
>> /etc/localtime and the process still thinks it's running in UTC (processes
>> read /etc/localtime only once).
> 
> Our daemon is started after sendmail and before cron, and both the
> sendmail and cron log files use the local timezone, so ...
> 
> Also there's the phenomenon of the timezone changing in what seems to
> be a random fashion when the process forks.
> 
>> Did you try rebooting the machine to see if it solves the problem?
> 
> It's been rebooted several times for other reasons.  No change.

does your daemon run chrooted? if so, you need to copy /etc/localtime to
the cage.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux