#!/bin/sh # # Start/stop a particular "instance" of commerce suite at boot or # shutdown time. # # See the WebSphere Commerce Suite installation guide, # chapter 12, 'using command line to... commerce suite instances." # # This script just provides a simple interface from the standard # /etc/init.d and /etc/rc?.d/[S][K]... scripts, to the # commerce suite start/stop scripts provided by the IBM websphere install. # # Charles Roth, IBS, 8 Nov 2000. #------------------------------------------------------------------------ #---Note that the value of INSTANCE is dependent on the particular # list and configuration of instances that were defined from the # commerce suite configuration manager! (http://host:4444.) # This script should be changed to match!! INSTANCE=DEV BASEDIR=/opt/WebSphere/CommerceSuite/server/admin PATH=/sbin:/usr/bin:/usr/sbin export PATH case "$1" in 'start') (echo "\$COMMAND=START_SERVER"; echo "NAME=$INSTANCE"; echo "") | $BASEDIR/webconfig ;; 'stop') (echo "\$COMMAND=STOP_SERVER"; echo "NAME=$INSTANCE"; echo "") | $BASEDIR/webconfig ;; esac