[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: During system shutdown a user-defined K script doesn't work



"Koski, Avi" wrote:
> 
> 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

Try to change it to K01avi. 
> 
> 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 linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
> 
> ---------------------------------------------------------------
> This mail passed through mail.simfax.co.il ( www.simfax.co.il )
> This footnote confirms that this e-mail has been scanned by
> SiMS Secured Mail Relay for the presence of computer viruses.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il