AstRecipes » Generic QueueMetrics startup script
This is a general-use startup script that can be used to start and stop QueueMetrics on any Unix system:#! /bin/bash
#
# This script starts and stops QueueMetrics
#
export JAVA_HOME=/mnt/hd1/j2sdk/jdk1.5.0_06
export JAVA_OPTS="-Xms256M -Xmx256M"
export TOMCAT=/mnt/hd1/tomcat
case "$1" in
start)
echo "Starting up QueueMetrics"
echo "Using JAVA_HOME: $JAVA_HOME"
echo "Using JAVA_OPTS: $JAVA_OPTS"
$TOMCAT/bin/startup.sh
;;
stop)
echo "Shutting down QueueMetrics"
$TOMCAT/bin/shutdown.sh
;;
*)
echo "Usage: $0 {start|stop}" >&2
exit 1
;;
esac
exit 0
chmod 755 /etc/init.d/queuemetrics
update-rc.d queuemetrics defaults
Just run:
chkconfig –-add queuemetrics
To make sure it start in the right runlevels:
chkconfig –-list queuemetrics
If it does not, try again with:
chkconfig –-level 2345 queuemetrics on
Softlinks:
Home Page - Installing Queuemetrics on Debian - Installing QueueMetrics - Installing QueueMetrics from scratch - QueueMetrics - AddQueueMember and the queue_log file - Upgrading QueueMetrics licences - Compiling Asterisk 1.4 with TDM400 and H323 - Avoiding queue_log file rotation - Manually updating QueueMetrics - QueueMetrics logs - Using a HT-488 with Asterisk - Listening to recorded calls using XC-AST - Managing agents that dynamically log-on - Installing QueueMetrics using Yum - Installing QueueMetrics on Fonality PBXtra - Installing Queuemetrics on PBX-in-a-Flash - Administering QueueMetrics using Tomcat - Debugging Qloaderd installation - Rebuilding Fonality queue_log
Home Page - Installing Queuemetrics on Debian - Installing QueueMetrics - Installing QueueMetrics from scratch - QueueMetrics - AddQueueMember and the queue_log file - Upgrading QueueMetrics licences - Compiling Asterisk 1.4 with TDM400 and H323 - Avoiding queue_log file rotation - Manually updating QueueMetrics - QueueMetrics logs - Using a HT-488 with Asterisk - Listening to recorded calls using XC-AST - Managing agents that dynamically log-on - Installing QueueMetrics using Yum - Installing QueueMetrics on Fonality PBXtra - Installing Queuemetrics on PBX-in-a-Flash - Administering QueueMetrics using Tomcat - Debugging Qloaderd installation - Rebuilding Fonality queue_log



