diff --git a/initscripts/README b/initscripts/README new file mode 100644 index 0000000..515c1c5 --- /dev/null +++ b/initscripts/README @@ -0,0 +1,8 @@ +This directory contains init scripts for espeakup for various linux +distributions. Any issues with these should be addressed directly with +the authors of the scripts as listed below. + +espeakup.redhat: This script is designed forFedora and Redhat +Enterprise linux. It was written by William Acker, who can be contacted +by email at wacker@octothorp.org. + diff --git a/initscripts/espeakup.redhat b/initscripts/espeakup.redhat new file mode 100644 index 0000000..400ceed --- /dev/null +++ b/initscripts/espeakup.redhat @@ -0,0 +1,58 @@ +#!/bin/sh +# +# espeakup This shell script takes care of starting and stopping +# the espeakup speech systen. +# +# chkconfig: - 01 99 +# description: espeakup is a connector which acts as a bridge between \ +#the Speakup soft speech driver and the Espeak software speech system +# processname: espeakup +# pidfile: /var/run/espeakup.pid + +# Source function library. +. /etc/rc.d/init.d/functions + +[ -x /usr/bin/espeakup ] || exit 0 + +# See how we were called. +case "$1" in + start) + # Start daemon. + echo -n $"Starting espeakup speech system: " + daemon "/usr/bin/espeakup > /dev/null" + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/espeakup + ;; + stop) + # Stop daemon. + echo -n $"Shutting down espeakup speech system: " + killproc espeakup + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/espeakup + ;; + status) + status espeakup + RETVAL=$? + ;; + restart) + $0 stop + $0 start + ;; + reload) + echo -n $"Reloading espeakup: " + killproc espeakup -HUP + RETVAL=$? + echo + ;; + condrestart) + [ -f /var/lock/subsys/espeakup ] && restart || : + ;; + *) + echo $"Usage: $0 {start|stop|status|restart|reload}" + RETVAL=1 + ;; +esac + +exit $RETVAL