Re: Rotatelogs and british summertime.

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

 



You would assume so, but the guidance in the documentation says the following:
 
"Causes the use of local time rather than GMT as the base for the interval or for strftime(3) formatting with size-based rotation. Note that using -l in an environment which changes the GMT offset (such as for BST or DST) can lead to unpredictable results!"
 
We used this a while ago and removed it when we realised it didn't work correctly. Currently setting a TZ variable in startup scripts (/etc/init.d type scripts) to GMT0BST,M3.5.0/1,M10.5.0/1 results in the right timings being applied to the access logs in BST , the log rotation is still offset though. I am not sure whether the TZ variable is being set on the execution of the rotatelogs script that is spawned from the httpd.
 
Steve
On Wed, Apr 6, 2011 at 1:39 PM, Eric Covener <covener@xxxxxxxxx> wrote:
> My concern is though that when we switch back to GMT in October that i will
> then have to remove the "+60" from the configuration.

Isn't that what -l does for you?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux