Hi Paul, many thanks for your quick reply.
I’m using CentOS 6.4 x64
# uname -a
Linux myfido01 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
run-level
# who -r
run-level 3 2014-05-02 15:12
/usr/local/WowzaStreamingEngine/bin/startup.sh
#!/bin/bash
# check for root access. If not, put up message and exit
#if [ "$(/usr/bin/id -u)" -ne "0" ] ; then
# echo "The Wowza Streaming Engine requires root access to start. Please run script again using sudo."
# exit
#fi
. ./setenv.sh
mode=standalone
if [ "$#" -eq 1 ];
then
mode=$1
fi
#chmod 600 ../conf/jmxremote.password
#chmod 600 ../conf/jmxremote.access
# NOTE: Here you can configure the JVM's built in JMX interface.
# See the "Server Management Console and Monitoring" chapter
# of the "User's Guide" for more information on how to configure the
# remote JMX interface in the [install-dir]/conf/Server.xml file.
JMXOPTIONS=-Dcom.sun.management.jmxremote=true
#JMXOPTIONS="$JMXOPTIONS -Djava.rmi.server.hostname=192.168.1.7"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.port=1099"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.authenticate=true"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.ssl=false"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.password.file=$WMSCONFIG_HOME/conf/jmxremote.password"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.access.file=$WMSCONFIG_HOME/conf/jmxremote.access"
ulimit -n 20000 > /dev/null 2>&1
rc=144
while [ $rc -eq 144 ]
do
WMSTUNE_OPTS=`$WMSAPP_HOME/bin/tune.sh $mode`
# log interceptor com.wowza.wms.logging.LogNotify - see Javadocs for ILogNotify
sudo -u wowza $_EXECJAVA $WMSTUNE_OPTS $JMXOPTIONS -Dcom.wowza.wms.runmode="$mode" -Dcom.wowza.wms.native.base="linux" -Dcom.wowza.wms.AppHome="$WMSAPP_HOME"$
rc=$?
done
/usr/local/WowzaStreamingEngine/bin/wms.sh
#!/bin/bash
# NOTE: Here you can configure the JVM's built in JMX interface.
# See the "Server Management Console and Monitoring" chapter
# of the "User's Guide" for more information on how to configure the
# remote JMX interface in the [install-dir]/conf/Server.xml file.
JMXOPTIONS=-Dcom.sun.management.jmxremote=true
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.port=1099"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.authenticate=true"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.ssl=false"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.password.file=$WMSCONFIG_HOME/conf/jmxremote.password"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.access.file=$WMSCONFIG_HOME/conf/jmxremote.access"
#JMXOPTIONS="$JMXOPTIONS -Djava.rmi.server.hostname=192.168.1.7"
if [ "$WMSCOMMAND" != "start" ]; then
JMXOPTIONS=""
fi
ulimit -n 20000
rc=144
while [ $rc -eq 144 ]
do
WMSTUNE_OPTS=`$WMSAPP_HOME/bin/tune.sh $mode`
# log interceptor com.wowza.wms.logging.LogNotify - see Javadocs for ILogNotify
sudo -u wowza $_EXECJAVA $WMSTUNE_OPTS $JMXOPTIONS -Dcom.wowza.wms.runmode="service" -Dcom.wowza.wms.native.base="linux" -Dcom.wowza.wms.AppHome="$WMSAPP_HOM$
PID=$!
if [ "$WMSCOMMAND" = "start" ]; then
while [ -z "$WOWZA_PID" ]
do
WOWZA_PID=$(ps --no-headers -o pid --ppid $PID)
done
echo $WOWZA_PID > ${WMSPIDFILE}
wait $!
fi
rc=$?
if [ $rc -eq 10 ] ; then
sudo -u wowza $_EXECJAVA -cp "$WMSAPP_HOME/lib/slf4j-api-1.6.4.jar:$WMSAPP_HOME/lib/slf4j-log4j12-1.6.4.jar:$WMSAPP_HOME/lib/wms-xstream-1.4.5.jar:$W$
rc=$?
fi
done
if [ "$WMSCOMMAND" = "start" ] ; then
WMSBASE_NAME=WowzaStreamingEngine
WMSLOCK_FILE="/var/run/$WMSBASE_NAME"
if test -w "/var/lock/subsys" ; then
WMSLOCK_FILE="/var/lock/subsys/$WMSBASE_NAME"
fi
echo $WMSLOCK_FILE > /tmp/enc.txt
rm -f $WMSLOCK_FILE
fi
exit 0
/usr/local/WowzaStreamingEngine/manager/bin/startmgr.sh
#!/bin/bash
# NOTE: Here you can configure the JVM's built in JMX interface.
# See the "Server Management Console and Monitoring" chapter
# of the "User's Guide" for more information on how to configure the
# remote JMX interface in the [install-dir]/conf/Server.xml file.
export _EXECJAVA=java
if [ -d /Library/WowzaStreamingEngine ]
then
# OS X
export WMSMGR_HOME=/Library/WowzaStreamingEngine/manager
else
# Linux
export WMSMGR_HOME=/usr/local/WowzaStreamingEngine/manager
ulimit -n 20000
fi
JMXOPTIONS=-Dcom.sun.management.jmxremote=true
#JMXOPTIONS="$JMXOPTIONs
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.authenticate=true"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.ssl=false"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.password.file=$WMSCONFIG_HOME/conf/jmxremote.password"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.access.file=$WMSCONFIG_HOME/conf/jmxremote.access"
#JMXOPTIONS="$JMXOPTIONS -Djava.rmi.server.hostname=192.168.1.7"
BACKGRND=" > /dev/null"
RUNCMD="`which nohup` "
if [ "$WMSMGRCOMMAND" != "start" ]; then
JMXOPTIONS=""
fi
rc=0
#while [ $rc -eq 0 ]
#do
# log interceptor com.wowza.wms.logging.LogNotify - see Javadocs for ILogNotify
CMD="$_EXECJAVA -Dcom.wowza.wms.ConfigURL=\"\" -Dcom.wowza.wms.ConfigHome=$WMSMGR_HOME -Djava.io.tmpdir=$WMSMGR_HOME/temp -Dlog4j.configuration=file://$WMSMG$
if [ "$WMSMGRCOMMAND" = "start" ]; then
$RUNCMD sudo -u wowza $CMD $BACKGRND &
else
sudo -u wowza $CMD
fi
PID=$!
rc=$?
if ! [ -d /Library/WowzaStreamingEngine ]
then
# Linux
if [ "$WMSMGRCOMMAND" = "start" ]; then
while [ -z "$WOWZA_PID" ]
do
WOWZA_PID=$(ps --no-headers -o pid --ppid $PID)
done
echo $WOWZA_PID > ${WMSMGRPID_FILE}
wait $PID
fi
if [ "$WMSMGRCOMMAND" = "start" ] ; then
WMSMGRBASE_NAME=WowzaStreamingEngineManager
WMSMGRLOCK_FILE="/var/run/$WMSMGRBASE_NAME"
if test -w "/var/lock/subsys" ; then
WMSMGRLOCK_FILE="/var/lock/subsys/$WMSMGRBASE_NAME"
fi
echo $WMSMGRLOCK_FILE > /tmp/enc.txt
rm -f $WMSMGRLOCK_FILE
fi
serviceName=$WowzaMGRVersion
# service $serviceName stop >/dev/null
fi
#done
exit 0