Technical article 105476

The timezone(F) and tz(M) man pages make incorrect claims about /etc/TIMEZONE.

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

The timezone(F) manual page about /etc/TIMEZONE states:

This file is ``dotted'' into other files that must know the time zone,
including /etc/cshrc, /etc/profile, and /etc/rc2.

I have checked these files and I cannot find any reference to /etc/TIMEZONE.

The manual page for tz(M) states:

The following files are examined to see if they read from /etc/TIMEZONE to set TZ for their environment:

/etc/cshrc
/etc/profile
/etc/rc2
/.profile

If these files do not read from /etc/TIMEZONE, a warning is issued.

I do not see such a warning when I run /etc/tz.

Solution

These problems have been reported to Engineering as documentation errata.

/etc/TIMEZONE is called by initscript(ADM) and not /etc/cshrc, /etc/profile, or /etc/rc2. initscript(ADM) is called by init(M) to execute the commands in inittab(M). Because init(M) is the parent of all other processes on the system, all processes will inherit the TZ variable from /etc/TIMEZONE by default.

From the Xinuos technical article database, record 105476. Reproduced with permission. The original is at www.sco.com/ta/105476, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.