#!/bin/bash
#
#continuum: Startup script for Continuum Server Application.
#
#chkconfig: 35 80 05
#description: Startup script for Continuum Server Application.
CONTINUUM_HOME=/tools/continuum;
export CONTINUUM_HOME
start() {
echo -n "Starting Continuum ASSS Server: "
cd $CONTINUUM_HOME/asss-1.5
./bin/asss -d
echo -n "Starting Continuum Billing Server: "
cd $CONTINUUM_HOME/biller
./ssbilling2-linux &
sleep 2
echo "done"
}
stop() {
echo -n "Stopping Continuum Server & Billing Server: ";
kill -9 `pidof asss` `pidof ssbilling2-linux`
cd $CONTINUUM_HOME/asss-1.5
rm -f asss.pid
echo "done"
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: continuum {start|stop|restart}"
exit
esac