1833824 Members
2197 Online
110063 Solutions
New Discussion

tz question

 
SOLVED
Go to solution
navin
Super Advisor

tz question

Hello,
I have a server running hp-ux11.23
I have changed the time zone to GMT recently from CST.For that i have edited /etc/profile.
Now the cients are having some problems when running thier application....application log files are showing up as CST times.
What could be the issue. any idea

Thanks
Learning ...
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: tz question

When you don't bother to identify the client application, it's difficult to know. By default, TZ is not defined in /etc/profile but rather in /etc/TIMEZONE. Moreover, the last TZ setting wins so each user's .profile could be overriding /etc/profile. All of this makes the (silly) assumption that your client application does a traditional login. The TZ may be inherited from inetd if inetd is used to spawn client connections. You would need to restart inetd in that case.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: tz question

Hi:

If you globally changed the server's TZ (timezone) because you wanted all users and processes to use the new localtime, you should reboot the server so that *every* process has a chance to re-cache the correct TZ settings.

That said, a better choice is to edit '/etc/TIMEZONE' which is sourced by 'etc/profile'.

An effective way to perform this is to run:

# /sbin/set_parms timezone

Regards!

...JRF...
navin
Super Advisor

Re: tz question

Thanks so much for both of you.
Can i kindly request...
could you please let me know an example service or application that use inetd to spawn client connections..
Thanks so much sir
Learning ...
James R. Ferguson
Acclaimed Contributor

Re: tz question

Hi (again):

> could you please let me know an example service or application that use inetd to spawn client connections

Simply examine your '/etc/inetd.conf'. Standardly, FTP and TELNET along with other "internet" services, are started by the 'inetd' daemon.

Regards!

...JRF...
navin
Super Advisor

Re: tz question

Thanks James.Which i'm aware of ...i miss understood in the first place .
Thanks again
Learning ...
Bill Hassell
Honored Contributor

Re: tz question

The time in HP-UX is always kept in GMT. The value for TZ modifies the time all applications and commands use. If CST time is shown in the application logs, then the apps were started with TZ=CST. You can change the value of TZ anytime, even setting different TZ values for different apps. TZ is a simple environment variable -- change it as necessary.


Bill Hassell, sysadmin