christophe barbé on Fri, 14 Jun 2002 09:17:51 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] starting a program at boot


/etc/rc.d/init.d/ is outdated.
The FSH say /etc/init.d/ and IIRC on recent RH distrib /etc/rc.d/init.d/
is a symlink to /etc/init.d/.

You can reasonably expect all distributions to use /etc/init.d/

And /etc/rc.d/rc.local is a RH kludge.

Christophe

On Thu, Jun 13, 2002 at 05:42:26PM -0400, epike@isinet.com wrote:
> > 
> > I am developing a website using Chilisoft on my laptop, and would like to 
> > start ASP service at boot.  It has to be run as root.  I am running Linux 
> > Madrake 8.2.  Could someone tell me how to run a program as root at start 
> > up?
> > 
> > Thanks,
> > 
> > Michael Lazin
> >
> 
> note: this is for RedHat, I'm posting on the chance that
> its similar to mandrake.
> 
> --*--
> 
> you could append a script in the file /etc/rc.d/rc.local
> (if its there)
> 
> *or*
> 
> write a script in /etc/rc.d/init.d/ 
> and create a link to it on your run level directory, for example,
> for runlevel 3 (normal):
> 
>   vi /etc/rc.d/init.d/my_own_script # create something - see
>                                     # other files in directory
>                                     # for examples
>   ln -s /etc/rc.d/init.d/my_own_script /etc/rc.d/rc3.d/S99my_own_script
> 
> (where 99 implies position in execution order check with
> other Sxx* first in this directory).
> 
> hope this helps...
> 
> (corrections welcome)
> 
> jondz
> 
> ______________________________________________________________________
> Philadelphia Linux Users Group       -      http://www.phillylinux.org
> Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug
> 

-- 
Christophe Barbé <christophe.barbe@ufies.org>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8  F67A 8F45 2F1E D72C B41E

An empty stomach is not a good political advisor.
-- Albert Einstein

Attachment: pgp0Ob3xa1Dlo.pgp
Description: PGP signature