> Where does a person go to find out how to make up scripts to install
> in /etc/rc.d/init.d so that they run properly.

There's no easy way to it that I know of.  You just have to look at the
existing scripts and build from that.

> It seems that just making up a file with only the three lines or so that
you
> want to have run, is just not the way to make up these files. I guess you
> need to have  a start and stop function and probably more as well.

Yes, they need a start, and stop at least.  The /etc/rc.d/rcX.d scripts are
just links to an appropriate /etc/rc.d/init.d script.  When your system
boots the init process runs all the rcX.d scripts from the appropriate level
with the 'start' argument, and when your system shuts down, init runs the
appropriate rcX.d scripts with the 'stop' argument.

> So, to keep things simple - where does one go to get information on what
is
> needed in these scripts (the basics at least) and would there also be an
> automatic script writer to produce these scripts.

If you have a 3-liner that you need to run on every boot up, I'd suggest
adding to the bottom of /etc/rc.d/rc.local.  This gets run on every boot up,
and will likely do what you're looking for.  I originally used it to
configure my COM ports with the setserial command.

> Coldbrook, Nova Scotia Canada

Hello from New Brunswick!

Marco



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to