MFG/PRO Simple Init script for Tomcat and Progress OpenEdge

haizz, đã bỏ dỡ qúa lâu, mốc meo hết rồi.

tomcat.init

#!/bin/bash
HOME=/qserver/apache-tomcat-8.0.27/bin
case “$1” in
    start)
# Main startup
echo -n “Starting Apache Tomcat Server: “
$HOME/startup.sh
echo “OK”
;;
    stop)
# Main shutdown
echo -n “Shutdown Apache Tomcat Server: “
$HOME/shutdown.sh
echo “OK”
;;
    reload|restart)
$0 stop
$0 start
;;
    configtest)
$HOME/configtest.sh
;;
*)
echo “Usage: `basename $0` start|stop|restart|reload|configtest”
exit 1
esac
exit 0

oe11.init

#!/bin/bash
DLC=/qserver/oe11/dlc
case “$1” in
    start)
# Main startup
echo -n “Starting Progress Admin Server: “
$DLC/bin/proadsv -start
sleep 1
$DLC/bin/proadsv -query
echo “OK”
;;
    stop)
# Main shutdown
echo -n “Stop Progress Admin Server: “
$DLC/bin/proadsv -stop
echo “OK”
;;
    reload|restart)
$0 stop
$0 start
;;
    status)
$DLC/bin/proadsv -query
;;
*)
echo “Usage: `basename $0` start|stop|restart|reload|status”
exit 1
esac
exit 0
Hope it helps.

Leave a Reply

Your email address will not be published. Required fields are marked *