Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
The Tao of Time (RFI)

The Tao of Time (RFI)

2004-04-12       - By Brian T. Brunner

 Back
Reply:     1     2     3     4  


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@(protected)
(610)796-5838

>>> "Bell, David I." <David_I_Bell@(protected)> 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@(protected)
> [mailto:shrike-list-bounces@(protected)]On Behalf Of Brian T. Brunner
> Sent: Monday, April 12, 2004 10:44 AM
> To: shrike-list@(protected)
> 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@(protected)
> (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@(protected)
> 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@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list

Earn $52 per hosting referral at Lunarpages.