On Wed, 25 Apr 2001, Brian Wince wrote:

> All,
>
> I have a application called atria that needs to be shutdown before
> /etc/init.d/network gets shutdown.
> I have tried renaming the kill script in /etc/rc.d/rc6.d and /etc/rc.d/rc0.d
> to be before K20nfs and K90network but it does not change the order of the
> kill scripts.
>
What did you rename them to?  You do know that the symling in rc0.d and
rc6.d have to start with a capital K, and a two digit number, right?
They are normaly symlinks to a script in /etc/rc.d/init.d.
>
> When I use chkconfig --list atria it returns service atria does not support
> chkconfig, which is the same response when I try and do chkconfig --add
> atria.
>
Your file needs to be in the proper format.  Checkconfig wants a line:
# chkconfig: 345 40 60
Where 3, 4, and 5 are the levels to start at.  40 is the start value,
and 60 is the kill value.  (The symlinks will be named S40 and K60...)

Checkconfig also likes a discription in the file - I am not sure if it
is necessare, but it is a good idea.

Now, for your script to work, you have to test how it is called.  This
is because S## symlinks become start commands, and K## become stop
commands.

So you will probably want your file to have something like:
# chkconfig: 345 30 80
(The network script uses is 10 and 90.)

> How do I get this application to shutdown before the network?
>
> Any and all is greatly appreciated.
>
> TIA
>
> Brian
>
>
Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



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

Reply via email to