Operating System - HP-UX
1832853 Members
3303 Online
110047 Solutions
New Discussion

Re: Locale setting from inittab

 
SOLVED
Go to solution
Keith Meloy_1
Occasional Advisor

Locale setting from inittab

I have a monitoring program that is launched by /etc/inittab. It works fine, but it gets the time wrong (it always reports EST whereas I am in the UK!).
I guess its something to do with there being no user environment in inittab, but cannot find how to change this.
Is it something to do with setting locale in the program itself?
Any thoughts would be approciated.

Keith
3 REPLIES 3
Ravi_8
Honored Contributor

Re: Locale setting from inittab

Hi,
#set_parms time

set the date/time to UK (i.e europe)
never give up
Dietmar Konermann
Honored Contributor

Re: Locale setting from inittab

Check 11.00 patch text of PHCO_23652. You can configure a TZ default in /etc/default/tz.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Alex Glennie
Honored Contributor
Solution

Re: Locale setting from inittab

If no timezone variable is
set upon login, the TZ variable sets to EST by default.

you may want to try changing /etc/TIMEZONE to TZ=GMTOBST or set the TZ variable in the script that starts your application ?