From: Jim D. <ji...@du...> - 2009-03-12 23:35:33
|
Jim, I'm running FC9. I use a rc startup script for MH, which includes the startup for festival. #!/bin/bash # # misterhouse This shell script takes care of starting and stopping # misterhouse. # # chkconfig: 2345 99 30 # description: Misterhouse is a Mail Transport Agent, which is the program \ # that moves mail from one machine to another. # Source function library. . /etc/rc.d/init.d/functions [ -f /home/misterhouse/mh/bin/mh ] || exit 0 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib RETVAL=0 stop() { # Stop daemons. /usr/bin/logger "Shutting down misterhouse: " if [ -s /home/misterhouse/data/mh.pid ] ; then PID=`cat /home/misterhouse/data/mh.pid` kill -9 $PID fi if [ -s /home/misterhouse/logs/festival_wrapper_pid ] ; then PID=`cat /home/misterhouse/logs/festival_wrapper_pid` kill $PID fi RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/misterhouse return $RETVAL } start() { /bin/mv /home/misterhouse/logs/misterhouse.log.3 /home/misterhouse/logs/misterhouse.log.4 /bin/mv /home/misterhouse/logs/misterhouse.log.2 /home/misterhouse/logs/misterhouse.log.3 /bin/mv /home/misterhouse/logs/misterhouse.log.1 /home/misterhouse/logs/misterhouse.log.2 /bin/mv /home/misterhouse/logs/misterhouse.log.0 /home/misterhouse/logs/misterhouse.log.1 /bin/mv /home/misterhouse/logs/misterhouse.log /home/misterhouse/logs/misterhouse.log.0 # Start daemons. /usr/bin/logger "Starting misterhouse: " /usr/bin/festival_server -port 1314 -l /home/misterhouse/logs /usr/bin/festival & sleep 5 /home/misterhouse/mh/bin/mh -log_file /home/misterhouse/logs/misterhouse.log & RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/misterhouse echo return $RETVAL } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) stop start RETVAL=$? ;; condrestart) if [ -f /var/lock/subsys/misterhouse ]; then stop start RETVAL=$? fi ;; status) status misterhouse RETVAL=$? ;; *) # echo "Usage: misterhouse {start|stop|restart|condrestart|status}" # exit 1 esac exit $RETVAL JimMH wrote: > I also have the following error: > > Socket_Item client start error: could not start a tcp client socket > - host=localhost=1314: IO::Socket::INET: connect: Connection refused > Error, socket port festival has not been set: data =... > |