Cover V12, I09
sep2003.tar

Listing 1 RC template example

#!/bin/ksh
###########################################
######## AIX RC script template 
########
######## name: <Application Name >
########
######## purpose: <Application Name> start script
###########################################
app="<application Name > " 
case "$1" in

start )
         <start application Block> 
         <echo "starting Application Name" > 
       ;;
 
stop )
         <stop application Block> 
         <echo "stopping Application Name" >
       ;;

status )
         <check Application Block> 
         <echo "Running" or "Not Running" test >    
       ;;

* )
        echo " No Parm or wrong Paramater Passed, exit program"
        echo "Usage: $0 ( start | stop | verify )"
        exit 1
       ;;
esac
####################################################