On Fri, 27 Aug 1999, Pedro Brandao wrote:

This is easy.

> I have two questions
>     1. Is init levels the correct place to put this initialization, or I
> should only launch/stop the daemons in init and do the interface
> configurations in /etc/sysconfig/network-scripts/ ?

I'd certainly say the rc is the 'right' way to go. sysconfig is a RH
nightmare concocted by linuxconf, and I'd recommend steering clear of that
path, for it leads to madness. The rc scripts work fine once you've got
hold of the small issues (see below).

>     2. (more important) The servers aren't stopped when I halt or reboot
> the system (level 0 and 6). The echo saying that they were killed doesn't
> appear. The start process runs ok.

Every script that's started on a RH box via rc has to touch a file in
/var/lock/subsys/ - I had the same problem, and the culprit is the
/etc/rc.d/rc script that checks for this file when called to kill a file.
I had the same problem with Oracle not being started and cursed over when
I found out what it was.

Sort of summarizing:

your script should have a 'touch /var/lock/subsys/_filename_' where
filename is the script's name (and what goes into init.d, for that
matter).

Read into /etc/rc.d/rc to figure it out. I hate Redhat.

k.

Reply via email to