The info that Ola gave you is the "proper" way to do it. Depending on which
distribution you have, there are easier ways to execute a simple command at
boot time. For example, RedHat provides a way (once you're more adept) to
turn on and off the command that you want (script inside /etc/rc.d/init.d).
Unfortunately, using the rc3.d (or any rcX.d directory) method with
SxxCOMMAND or KxxCOMMAND (xx replaced by an actual number) is a bit
confusing. It's a holdback from original SystemV Unix and Sun systems
currently use it as well.
If it's a simple command, most Linux distributions provide a way for you to
use an editor and place the command at the end of the rc.local script
(usually in /etc/rc.d directory). The rc.local script runs AFTER everything
else does.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jim Roland, RHCE (RedHat Certified Engineer)
Owner, Roland Internet Services
"The four surefire rules for success: Show up, Pay attention, Ask
questions, Don't quit."
--Rob Gilbert, PH.D.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----- Original Message -----
From: "Sanchet Surendra Dighe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 9:03 AM
Subject: Re: RE: HowTo: Execute a command during boot.
> ----- Original Message -----
> From: Ola Theander <[EMAIL PROTECTED]>
> Date: Thursday, April 19, 2001 3:37 pm
> Subject: RE: HowTo: Execute a command during boot.
>
> > Hi Sanchet.
> >
> > Thanks for your answer. The number in rcX.d stands for the
> > runlevel at which
> > the script is executed, if I'm not totally mistaked. I.e. if you
> > go from
> > runlevel 1 to runlevel 3 using "init 3". The rc3.d script is executed.
> >
>
> Hi Ola,
>
> I did not mean the runlevel #. There is some number after 'S' in the
> script-name. eg - S80sendmail.
>
> I do not know the significance of the number 80 and what is the
> convention followed to give those numbers. As Neil Hart said,
> it could be -- "The number that follows, is the priority, i.e.
> the order that are run.". But, what are the factors that decide
> giving those numbers are still unclear to me. Can you use any
> number ?
>
> -Sanchet-
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs