Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.i386 Subject: Re: want PST clock not EST in ix/386 Message-ID: <1990Mar11.231937.15412@virtech.uucp> Date: 11 Mar 90 23:19:37 GMT References: <9003092109.AA09255@decwrl.dec.com> <21@usaos.UUCP> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 32 In article <21@usaos.UUCP> root@usaos.UUCP (Warren Calhoun) writes: >In article <9003092109.AA09255@decwrl.dec.com>, paine@fungus.enet.dec.com (Willy Paine) writes: >> [question of how to get timezone correct for non-logins deleted] >As I also run 386/ix, I stopped to do a quick check for you. When your >system boots, there should be a line in /etc/inittabs invoking bcheckrc. >The file /etc/bcheckrc should (among other things) contain the line; > > . /etc/TIMEZONE > >...which should contain the lines; > > TZ=EST5EDT (in my case) > export TZ > >This would alleviate the necessity for any other use of a TZ= line. It Placing the TZ stuff into the /etc/TIMEZONE file does in fact solve the problem, but it is not because the /etc/bcheckrc file reads the file. It is because /etc/init reads the file and processes (places into its environment) all the VAR=junk lines. You could almost say that /etc/TIMEZONE acts as an 'rc' file for init. /etc/bcheckrc is just a shell run by init (because of an entry in /etc/inittab) when entering multi-user mode (leaving single user mode). Any environment variables set or changed there will have no effect on the environment for any other program. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170