[BusyBox] init, inetd and timezones?

Steven Scholz steven.scholz at imc-berlin.de
Tue Nov 26 03:04:03 UTC 2002


"Vladimir N. Oleynik" wrote:
> 
> Steven,
> 
> > 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!
> 
> Why?
> Your inetd is bad and exited any time? :0
> 
> > ::respawn:/sbin/inetd -i
> 
> Background daemons are usually called from an rc script and you can set TZ :)

I can't actually answer that but I am using SELF from DENX. With that I
downloaded
ftp://sunsite.unc.edu/pub/Linux/system/network/netkit-base-0.16.tar.gz

The manpage of inetd contained in the packages states:

     Inetd should be run at boot time by /etc/rc.local (see rc(8)).  If your
     init(8) can respawn arbitrary daemons, inetd can be run from init
     instead; then init will restart it if it crashes.  You must use the -i
     option to prevent inetd from backgrounding itself, or init will become
     confused.

I guess that is why 

# Start internet super daemon; do NOT background!
::respawn:/sbin/inetd -i

is in the sample inittab....

Steven



More information about the busybox mailing list