Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
All.
About a fortnight ago an older (RedHat 9) server started to run
some processes 5 hours late. We are in the "Europe/London"
timezone, currently in GMT and the TZ environment variable is
being correctly set in /etc/profile. Despite (as a last resort)
a reboot, the cron tasks are going off at 9am not 4am and the
even the maillog contains obvious process-different timestamps,
vis excerpt:
I checked everything TZ related that I could think of; startup scripts, env vars /etc/localtime file hw time. No joy. Yeah I know its EOL and just about to be upgraded but there *has* to be a simple answer to this that's not a re-install/upgrade/package/blah issue?
Hmmm...seems that creating an /etc/timezone file will do the trick:
su -c "echo Europe/London > /etc/timezone"
Can't find documentation on that at first attempt. Will go away and dig. Also try to work out why three other boxes (some different RH distros, granted) have no file either but no problem.....
Hehe and I thought I was being explicit.
Yeah, you've been thorough on a different plane, different train of thought. I'm thinking that if a system operates "as advertised" w/o interruption then if changes occur they can be contributed to either human intervention (good or bad) or say upgrades. So what I was thinking was tracking changes by looking for files with changed MAC times and recent updates...
Yeah I know its EOL and just about to be upgraded but there *has* to be a simple answer to this that's not a re-install/upgrade/package/blah issue?
Sure is.
Hmmm...seems that creating an /etc/timezone file will do the trick:
su -c "echo Europe/London > /etc/timezone"
LOL. Never heard of /etc/timezone.
I do know TZ skew between apps usually can be contributed to a problem with /etc/localtime (Glibc). Fix that by slinking: "ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime". For other typical probs you'd check /etc/sysconfig/clock: "grep ^ZONE= /etc/sysconfig/clock" should show your TZ as "Europe/London".
BTW: there's an edit button so you can edit your post and add info.
> Yeah, you've been thorough on a different plane, different train
> of thought. I'm thinking that if a system operates "as advertised"
> w/o interruption then if changes occur they can be contributed to
> either human intervention (good or bad) or say upgrades. So what I was
> thinking was tracking changes by looking for files with changed MAC
> times and recent updates...
Me thorough? lol. Well I did start at exactly that point but got no changes that I could obviously trace to this prob :-( So I started from scratch with tz configuration. Gotta be simple I thought...
> LOL. Never heard of /etc/timezone.
lol - suggestion from another list - can't find man or docs on it either....
> I do know TZ skew between apps usually can be contributed to a problem
> with /etc/localtime (Glibc). Fix that by slinking: "ln -sf
> /usr/share/zoneinfo/Europe/London /etc/localtime". For other typical
> probs you'd check /etc/sysconfig/clock: "grep ^ZONE=
> /etc/sysconfig/clock" should show your TZ as "Europe/London".
Skew? Nope, ntp fine and we're not talking even a few minutes here. 5 hours dead different it was.
> BTW: there's an edit button so you can edit your post and add info.?
ooo shiny
Thread closable now, crystal ball still required for reason....thanks unSpawn!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.