#!/bin/bash
#
# sas Startup script for the SAS Application Server
#
# chkconfig: - 85 15
# description: SAS Application Server \
#
# processname: sas
#
SAS_HOME="/opt/jakarta"
start(){
echo "Starting sas.."
su -l root -c "/opt/jakarta/bin/startup.sh"
}
stop(){
echo "Stopping sas.."
su -l root -c "/opt/jakarta/bin/shutdown.sh"
}
restart(){
stop
sleep 60
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo "Usage: sas {start|stop|restart}"
exit 1
esac
exit 0
No comments:
Post a Comment