Danny wrote:

> RPM's
> - Is useful in a sense they put things in standard places which is good for
> standardization in your network. So try to use RPM's as much as possible
>
> - To answer your question
> - Create a file called sysprogs.sh in /etc/rc.d/init.d/
> - From memory Linux will start the programs in /etc/rc.d/initd/ in alphabetical
> order (abcdefg whatever)
>
> in the sysprogs.sh file type in
>
> #!/bin/sh
> /usr/local/sysprogs/bin/whatever
>
> Exit and save the file
>
> -Then type in chmod 755 sysprogs.sh to give it the correct the permissions
> - Then reboot your Linux box to test this
>
> On Mon, 05 Jun 2000, Ahbaid Gaffoor wrote:
> > How do I get a script entered into /etc/rc.d/init.d to start and stop as
> > the system boots and shuts down?
> >
> > Thanks,
> >
> > Ahbaid.
> >
> >
> > --
> > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> > as the Subject.
> --
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.

This is close.  The Redhat init scripts are run based on symbolic links in the
/etc/rc.d/rc?.d directory where ? is the runlevel.  They are executed in name
sorted order of K* first then S* next.  These links typically point to the scripts
in /etc/rc.d/init.d.  If you want to run it in all runlevels you can place a call
to the script in /etc/rc.d/rc.local which is run as the last step in the init
process.

If it is a standard package you are wanting to run like say lpd, you can run as
root ntsysv and enable it.  I believe that it will setup the links for you in the
current runlevel.  There is a control panel tool that I have used but I forget its
name that allows you to set the started processes for all runlevels as well as
define the ones you want stopped when entering the runlevel via telinit.

This is my undersanding of how this works.  If you want to read through the scripts
you can start at /etc/rc.d/rc and see how it as all done.

Bret



-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to