#!/bin/bash
#
# name: /etc/rc.d/init.d/WebShpereinit
# chkconfig: 345 99 91
# description: starts and stops WebShpere 6
start() {
#Start Websphere 7
sleep 20
echo "Starting Websphere......2"
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1
sleep 10
echo "Started Successfully"
}
stop(){
#Stop Websphere 7
echo "Stopping Websphere..."
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/stopServer.sh server1 -username htwsad -password sugon;123
}
case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo "Usage: Websphere7[start|stop]"
;;
esac