[mdlug] Running 'date' in an init script- weirdness

Jeff Hanson jhansonxi at gmail.com
Tue Jan 8 10:51:57 EST 2008


On Jan 8, 2008 10:41 AM, Raymond McLaughlin <driveray at ameritech.net> wrote:
> It runs as expected on shutdown and produces a line in /var/log/IP.log
> like this:
>
> Tue Jan 8 10:08:06 EST 2008..         Your IP Address is ww.xx.yy.zz
>
> but on startup it produces entries like this:
>
> Tue Jan 8 10:09:25 EST 2008Tue Jan 8 10:09:53 EST 2008..            Your
> IP Address is ww.xx.yy.zz
>
> Notice the two dots after the date only appear once which indicates that
> the echo-date line is not running twice, but rather the date command is
> running a second time, always 17-18 seconds after the first.
>
> I have added delays of up to 30 seconds to the start of the script, just
> so any other startup processes that might affect the system clock can
> finish. No change.
>
> Also I have tried this script on a SuSE 10.3 virtual machine and it
> works as expected, no problem.

Maybe you just discovered an init bug.



More information about the mdlug mailing list