mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
added redhat init script, thanks to William Acker.
This commit is contained in:
parent
c7bece776d
commit
c2c1d429db
2 changed files with 66 additions and 0 deletions
8
initscripts/README
Normal file
8
initscripts/README
Normal file
|
|
@ -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.
|
||||
|
||||
58
initscripts/espeakup.redhat
Normal file
58
initscripts/espeakup.redhat
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue