[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SpeechIO-86] Some suggestions regarding speechd directories



heh. forgot the attachment
-- 
Michael Matsumura
michael@limit.org
#!/bin/sh
#
# Startup script for speechd
#
# chkconfig: 2345 90 30
# description: speechd creates and monitors /dev/speech, relaying input \
#              to a speech synthesizer.
# processname: speechd
# pidfile: /var/run/speechd.pid


# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
	echo -n "Starting speechd: "
	daemon /usr/local/bin/speechd
	echo
	touch /var/lock/subsys/speechd
	;;
  stop)
	echo -n "Shutting down speechd: "
	killproc speechd
	echo
	rm -f /var/lock/subsys/speechd /var/run/speechd.pid
	;;
  status)
	status speechd
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
	echo -n "Reloading speechd: "
	killproc speechd -HUP
	echo
	;;
  *)
	echo "Usage: $0 {start|stop|restart|reload|status}"
	exit 1
	;;
esac

exit 0