[ILUG] Re: slackware (was: Esat ADSL)
John P. Looney
valen at tuatha.org
Tue Dec 17 09:49:03 GMT 2002
On Mon, Dec 16, 2002 at 03:29:31PM -0800, Rick Moen mentioned:
> But if you want such a half-assed rc.local _anyway_ (and some days, I
> do), it suffices to do:
>
> # cd /etc/init.d
> # $EDITOR_OF_CHOICE rc.local
> # chmod 774 rc.local
> # ln -s /etc/init.d/rc.local /etc/rc2.d/S99local
>
> And you're done.
Problem with that (and I'd a bug filed in RedHat 6.1 or something against
it) was that rc.local gets run if you do:
init 6 (runs rc.local on reboot)
init s
init 2 (runs it again)
init s
init 2 (runs it again)
etc. you get it run many times, with is not the semantics of an rc.local.
And it's still a pain. Which is why that simple crontab @reboot is a
better solution.
john
More information about the ILUG
mailing list