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.

Why does the script filename have to start with 'S'?

Kind regards, Ola Theander

> -----Original Message-----
> From: Sanchet Surendra Dighe [mailto:[EMAIL PROTECTED]]
> Sent: den 19 april 2001 10:49
> To: Ola Theander
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: HowTo: Execute a command during boot.
> 
> 
> ----- Original Message -----
> From: Ola Theander <[EMAIL PROTECTED]>
> Date: Thursday, April 19, 2001 1:29 pm
> Subject: HowTo: Execute a command during boot.
> 
> > Dear subscribers.
> > 
> > I would like to know how to execute a command during boot. I would 
> > like to
> > start an instance of the Apache web server with the command 
> "apachectl
> > start".
> > 
> 
> You need to update /etc/inittab. See "man/info inittab" for details.
> Optionally, you can place your script that contains the command
> 'apachectl start' in /etc/rc.d/rc5.d/ with the script-name starting
> with S. But, I am not aware of what the number stands for in the
> script-name.
> 
-
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

Reply via email to