[BusyBox] init, inetd and timezones?

Brad Campbell brad at seme.com.au
Mon Nov 25 22:56:03 UTC 2002


Steven Scholz wrote:
> 
> Hi there,
> 
> the RTC on my board stores the time in UTC. That's why in /etc/profile I set TZ
> to something like "CET-1". So "date" shows the correct localtime.
> 
> But now I realized that times shown by the ftpd are still in UTC.
> inetd is started by init since my /etc/inittab contains
> 
> # Start internet super daemon; do NOT background!
> ::respawn:/sbin/inetd -i
> 
> Obviously the environment varibale TZ is not set for inetd when started by init.
> When I start inetd from a console, everything is fine.
> 

HaHA! One I can answer

Create /etc/TZ and put CET-1<NewLine> in it.
It MUST have only one line, and MUST be in the same format of the TZ variable.
uClibc will pick up it's timezone from this.
You do not need to set the TZ variable after this.
 
-- 
Brad....
                   /"\
Save the Forests   \ /     ASCII RIBBON CAMPAIGN
Burn a Greenie.     X      AGAINST HTML MAIL
                   / \



More information about the busybox mailing list