[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: During system shutdown a user-defined K script doesn't work
- To: "Koski, Avi" <Avi.Koski(at-nospam)comverse.com>
- Subject: Re: During system shutdown a user-defined K script doesn't work
- From: alex senin <alex(at-nospam)sims.co.il>
- Date: Wed, 06 Jun 2001 12:15:08 +0300
- CC: "'linux-il(at-nospam)linux.org.il'" <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Organization: SiMS NEtworks LTD
- References: <767720C6032ED511AE8C00508BE3518E70DA94@ISMAILWEB>
- Reply-To: alex_sims(at-nospam)rambler.ru
- Sender: alex(at-nospam)cs.huji.ac.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
"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