[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with 6.5rc1
From: |
Lars Bjørndal |
Subject: |
Problem with 6.5rc1 |
Date: |
Wed, 28 Nov 2007 13:37:43 +0100 |
Hi!
Because of the audio problems I have discussed earlier, it's important
to me to run SD as a speech-dispatcher user. However, I want to run it
as a system service. I've created the user speech-dispatcher, and give "him"
the owwnership of /var/run/speech-dispathcer and
/var/lob/speech-dispatcher. Starting the script (see below) will start
SD as the root user. How do you set the user to be speech-dispatcher?
Thanks
--------------------
#!/bin/bash
#
# $Id: speech-dispatcher.init_script,v 1.3 2006/07/26 13:58:53 mossc Exp $
# /etc/rc.d/init.d/speech-dispatcher
#
# Starts the speech-dispatcher daemon
#
# chkconfig: - 65 35
# description: speech-dispatcher Server
# processname: speech-dispatcher
# Source function library.
. /etc/init.d/functions
#test -x /usr/bin/festival_server || exit 0
test -x /usr/bin/speech-dispatcher || exit 0
RETVAL=0
prog="speech-dispatcher"
start() {
# echo -n $"Starting festival server"
# daemon /usr/bin/festival_server -c
/etc/speech-dispatcher/speech-dispatcher_festival_server.config &
# RETVAL=$?
# echo
# sleep to allow festival server to come up
# sleep 10
echo -n $"Starting $prog: "
daemon speech-dispatcher /usr/bin/speech-dispatcher
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/speech-dispatcher
echo
}
stop() {
# echo -n $"Stopping festival_server: "
# killproc /usr/bin/festival_server
# RETVAL=$?
# echo
echo -n $"Stopping $prog: "
killproc /usr/bin/speech-dispatcher
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/speech-dispatcher
echo
}
#
# See how we were called.
#
case "$1" in
start)
start
;;
stop)
stop
;;
reload|restart)
stop
start
RETVAL=$?
;;
condrestart)
if [ -f /var/lock/subsys/speech-dispatcher ]; then
stop
start
fi
;;
status)
status /usr/bin/speech-dispatcher
RETVAL=$?
;;
*)
echo $"Usage: $0 {condrestart|start|stop|restart|reload|status}"
exit 1
esac
exit $RETVAL
# $Log: speech-dispatcher.init_script,v $
# Revision 1.3 2006/07/26 13:58:53 mossc
# use provided festival server config
#
# Revision 1.2 2006/07/26 13:23:56 mossc
# fix festival log dir
#
# Revision 1.1 2006/07/25 02:48:35 mossc
# moved etc/rc.d/init.d/speech-dispatcher to speech-dispatcher.init_script
#
# Revision 1.4 2006/07/24 22:34:47 mossc
# cleanup rpmlint output after adding rc script
#
- Problem with 6.5rc1, (continued)
- Problem with 6.5rc1, Luke Yelavich, 2007/11/27
- Problem with 6.5rc1, Lars Bjørndal, 2007/11/27
- Problem with 6.5rc1, Jan Buchal, 2007/11/27
- Problem with 6.5rc1, Halim Sahin, 2007/11/27
- Problem with 6.5rc1, Jan Buchal, 2007/11/27
- Problem with 6.5rc1, Lars Bjørndal, 2007/11/28
- Problem with 6.5rc1, Hynek Hanke, 2007/11/28
- Problem with 6.5rc1, Lars Bjørndal, 2007/11/28
- Problem with 6.5rc1, Halim Sahin, 2007/11/27
Problem with 6.5rc1, Hynek Hanke, 2007/11/28
- Problem with 6.5rc1,
Lars Bjørndal <=
- Problem with 6.5rc1, Halim Sahin, 2007/11/28
- Problem with 6.5rc1, Lars Bjørndal, 2007/11/28
- Problem with 6.5rc1, Halim Sahin, 2007/11/29
- Problem with 6.5rc1, Lars Bjørndal, 2007/11/29
- Problem with 6.5rc1, Lars Bjørndal, 2007/11/30
Problem with 6.5rc1, Jan Buchal, 2007/11/28