return to PRS Technologies website


S910elite.sh
#!/bin/sh # # This script is to be used to startup and shutdown Elite # Optimized for HP/UX # # Installation instructions # # Copy this script to /sbin/init.d # Link it to a start and a stop file in each of the rc?.d directory # appropriate for the run level for which you wish the engine to be started, eg: # # $ ln -s /sbin/init.d/elite /sbin/rc3.d/S910elite # $ ln -s /sbin/init.d/elite /sbin/rc2.d/K010elite # #################################################################################### # # Note: You can set the Informix environment several ways. # You can hardcode it here - or else you can set it using a file. # If you hardcode it here, it would look something like this... # #export INFORMIXDIR=/opt/informix #export INFORMIXSERVER=myserver_shm #export ONCONFIG=onconfig.myserver # If you set it using a file, it might look like this... ENV_FILE=/elite/custom/run.elite if [ -x $ENV_FILE ] then . $ENV_FILE else echo "Error: the file used to set the Informix environment does not exist!" echo "The filename is: $ENV_FILE" exit 1 fi #------------------------------------------------------------------------------------- if [ $# -lt 1 ] then echo "Usage: $0 {start|stop|start_msg|stop_msg}" else case "$1" in "start_msg") echo "Starting up Elite EIS deamons..." ;; "stop_msg") echo "Shutting down Elite EIS deamons..." ;; "start") echo "Cleaning up the winoutstat tables..." /u/acct/informix/bin/cleanwinout.scr echo "Rotating elite logs..." /u/acct/informix/bin/rotate_elite_logs.sh 8 echo "Starting up Elite EIS deamons... " /elite/custom/eis_elite -selbs -sfms ;; "stop") echo "Shutting down Elite EIS deamons... " /elite/custom/eis_elite -kall ;; *) echo "Usage: $0 {start|stop|start_msg|stop_msg}" ;; esac fi ################################################################################