# Program: sub_disable_ai # Purpose: This script disables AI for the Database # Called by disable_ai # Author: Adam Backman # Date Written: 06/08/98 # # If there is no ai for a database then exit if [ $BKAIDIR = "NO_AI" ] then exit 0 fi #Check to see if the Database Server is down proutil $DB_DIR/$DB -C busy 2>/dev/null >/dev/null if [ $? != 0 ] # Database Server is up and running then echo "Database is in use. Cannot Disable After Image for the Database." exit 1 fi #Disable After Image for the Database rfutil $DB_DIR/$DB -C aimage end exit 1