Hello, I try OM 3.0 latest dayli build (661) 3.0.0-SNAPSHOT 1546171
28-November-2013 and detect logging faul:
Type cmd (as root): service red5 start/stop/status the logs is empty.
The "red5" a shell script in /etc/init.d and call the red5-highperf.sh
as chuid nobody
Whenn start red5-highperf.sh directly as root, logging successfull.
I try chmod 777/666 in log dir, problem is live.
Tha prev builds is not this problem, loging process finaly, detect this
only latest build
main red5 in init.d:
#!/bin/bash
# For RedHat and cousins:
# chkconfig: 2345 85 85
# description: Red5 flash streaming server
# processname: red5
# Created By: Sohail Riaz ([email protected])
# Modified by Alvaro Bustos
PROG=red5-highperf
#PROG=red5
RED5_HOME=/opt/red5
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid
# Source function library
# . /etc/rc.d/init.d/functions
[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5
RETVAL=0
case "$1" in
start)
echo $DAEMON
#echo -n $"Starting $PROG: "/usr/lib/libreoffice/program/soffice
"-accept=socket,host=127.0.0.1,port=8100,tcpNoDelay=1;urp;" -headless
-nodefault -nofirststartwizard -nolockcheck -nologo -norestore & sleep 1
cd $RED5_HOME
start-stop-daemon --start --chuid nobody --pidfile $PIDFILE
--chdir $RED5_HOME --background --make-pidfile --exec $DAEMON >/dev/null
2>/dev/null &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo $! > $PIDFILE
# touch /var/lock/subsys/$PROG
fi
echo
;;
stop)
pkill soffice.bin
cd $RED5_HOME
sh red5-shutdown.sh
start-stop-daemon --stop --quiet --pidfile $PIDFILE --name java
rm -f $PIDFILE
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
;;
restart)
$0 stop
$0 start
;;
status)
start-stop-daemon --status --pidfile $PIDFILE
RETVAL=$?
[ $RETVAL -eq 0 ] && echo "$PROG is running"
[ $RETVAL -eq 1 ] && echo "$PROG is not running and the pid file
exists"
[ $RETVAL -eq 3 ] && echo "$PROG is not running"
[ $RETVAL -eq 4 ] && echo "$PROG - unable to determine status"
;;
checkports)
netstat -anp | grep soffice
netstat -anp | grep java
;;
*)
echo $"Usage: $0 {start|stop|restart|force-reload|status|checkports}"
RETVAL=1
esac
exit $RETVALA
Balazs