On Sat, 17 Jul 1999 [EMAIL PROTECTED] wrote:

> Hello !
> 
> I have a strange problem with a self written script which shall be 
> executed when shutdown or switching runlevels.
> I put a symbolic link (called K99boot.local) in /etc/rc.d/rc3.d
> which points to my script (called boot.local) in /etc/rc.d/init.d.
> When I call the script with K99boot.local stop then the script works
> perfect. But when I switch from runlevel 3 to e.g. 2 nothing happens,
> same problem when I reboot or halt.
> It seems as init doesnt recognize my kill script.
> 
> The strange thing is when I rename K99boot.local to S99boot.local then
> the script works while booting up or switching runlevels.
> Now init recognizes my script.
> 
> When the script is named K99 it doesnt work, but when it is called S99
> it works.
> 
> On the other hand  my script has no errors because it works with start 
> and stop parameters when I call it by hand.
> 
> Any ideas ?
> 
> Greetings - Jens
> 
> 

Probably you have forgotten to put the line

touch /var/lock/subsys/boot.local

in the start branch of your script and the line

rm -f /var/lock/subsys/boot.local

in the stop branch of your sript.

If the file /var/lock/subsys/boot.local does not exist,
init will not execute K99boot.local. On the other hand
init will not execute S99boot.local, if /var/lock/subsys/boot.local
exists.

HTH
Harald

-------------------------------------------------------------------
 Harald Schreiber,    Nizzaalle 26,    D-52072 Aachen,     Germany
Phone: +49-241-9108015, Email: [EMAIL PROTECTED]
-------------------------------------------------------------------

Reply via email to