Hi all:

I am having some problems getting an rc script to work on RH7.2.
I have a script (fapsrv) that I use for starting and stopping a
set of Progress database servers from the init.d/rcX.d directories.
The script contains:

    :
    STATE=$1
    RUNLEVEL=${RUNLEVEL:-`who -r | awk '{print $3}'`}

    case ${STATE} in

    'start')
            /usr/bin/fapdbstart
            ;;
    'stop')
            /usr/bin/fapdbstop -q
            ;;
    esac

I normally would install the script to:

   /etc/init.d/fapsrv

(root/root 755) and then hard link it to:

  /etc/rc0.d/K01fapsrv
  /etc/rc2.d/S99fapsrv
  /etc/rc3.d/S99fapsrv
  /etc/rc5.d/S99fapsrv
  /etc/rc6.d/K01fapsrv


The startup scripts (S99fapsrv) work fine but the shutdown scripts
(K01fapsrv) do not seem to execute at all. I have also tried 
installing the shutdown scripts (K01fapsrv) in the rc2/3/5.d
directories but without any luck. For some reason the K01 scripts
are not being executed at all (I have added debugging lines to
check for this).

Any thoughts or ideas would be greatly appreciated.

TIA

Hugh

-- 
Hugh E Cruickshank, Forward Software, www.forward-software.com
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



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

Reply via email to