Hi friends,

I put the following script in /etc/rc.d/init.d/avi .

There are links from /etc/rc.d/rc2.d & /etc/rc.d/rc6.d as follows:

K99avi -> ../init.d/avi

There are also links from /etc/rc.d/rc3.d & /etc/rc5.d as follows:

S99avi -> ../init.d/avi


Problem:

When a system is rebooted with the "reboot" or "shutdown -r now" commands,
the K99avi links are NOT executed, and there is no warnings in the
/var/log/messages file.

THe S99avi links work fine upon startup of the system.

I tested it in RedHat 6.2 (Kernels 2.2.14-5.0, 2.2.16, ...)

Any help is appreciated!

Thanks,
Avi

==========================================================
#!/bin/sh 
# 
# Source function library. 
 /etc/rc.d/init.d/functions 
# See how we were called. 
case "$1" in 
   start) 
        echo "Starting avi..... : " 
        echo "Starting avi..... : "  >> /home/AVI 
        ;; 
   stop) 
        echo "Shutting down avi..... : " 
        echo "Shutting down avi..... : "  >> /home/AVI 
        ;; 
esac


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to