RE: The Tao of Time (RFI)

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

 



Hi David, you understand correctly.  This is a shell script to start a service.
/etc/rc is the parent script.
I guess /etc/rc needs to get TZ set correctly before it fires off the several 
services, or each service script that cares what time it is must set TZ itself.

If that is the key, then my problem evolves thus: This *nix based application 
will be installed on oil rigs & similar sites in remote localities by non-*nix 
personnel, and left in the care of non-*nix personnel.  When installed the TZ 
value must be set correctly in whatever place (for that place)
(/etc/localtime->/usr/share/zoneinfo/mumble)

I'm curious how to do that... tzselect is simple on the front end but doesn't 
set up the environment, and doesn't look like the info necessary to set the 
/etc/localtime symlink

I can't be inventing this... this has got to be old hat....

Brian Brunner
brian.t.brunner@xxxxxxxxxxxxxxx
(610)796-5838

>>> "Bell, David I." <David_I_Bell@xxxxxxxxxx> 04/12/04 01:58PM >>>
Hi Brian,

> Wanted: what command in the service shell script will load 
> local time into the services' environment?

I don't understand what you mean when you say "service shell" and "services
environment".  If your talking about stuff that gets started via init (for
run levels) or stuff that gets started up via xinetd in respsonse to an
inbound request for a network daemon, then you need to get the TZ
environment variable set correctly as part of the startup.

HTH.  Ask for more details if the above isn't enough.

-- David

===============================================================
David I. Bell | Intuit Technical Education | direct 650-944-5082


> -----Original Message-----
> From: shrike-list-bounces@xxxxxxxxxx 
> [mailto:shrike-list-bounces@xxxxxxxxxx]On Behalf Of Brian T. Brunner
> Sent: Monday, April 12, 2004 10:44 AM
> To: shrike-list@xxxxxxxxxx 
> Subject: The Tao of Time (RFI)
> 
> 
> 
> Problem:
> date, at a shell, returns local time (EDT)
> date, executed as popen("date") in a service started from 
> /etc/rc, returns UTC.
> 
> Wanted: what command in the service shell script will load 
> local time into the services' environment?
> 
> 
> Brian Brunner
> brian.t.brunner@xxxxxxxxxxxxxxx 
> (610)796-5838
> 
> *******************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept
> for the presence of computer viruses.
> 
> www.hubbell.com - Hubbell Incorporated
> 
> 
> -- 
> Shrike-list mailing list
> Shrike-list@xxxxxxxxxx 
> https://www.redhat.com/mailman/listinfo/shrike-list 
> 


*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.

www.hubbell.com - Hubbell Incorporated


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux