diff options
Diffstat (limited to 'app-accessibility/eflite/files/eflite.rc')
-rw-r--r-- | app-accessibility/eflite/files/eflite.rc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-accessibility/eflite/files/eflite.rc b/app-accessibility/eflite/files/eflite.rc new file mode 100644 index 000000000000..f2f52c2f64cf --- /dev/null +++ b/app-accessibility/eflite/files/eflite.rc @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/eflite/files/eflite.rc,v 1.1 2004/03/22 07:37:06 eradicator Exp $ + +depend() { + need alsasound +} + +start() { + ebegin "Starting eflite" + start-stop-daemon --start --exec /usr/bin/eflite --background \ + --quiet --pidfile /var/run/eflite.pid --make-pidfile -- -D + + SOCKET=`egrep '^sockname=' /etc/es.conf | sed 's/^sockname=//'` + [ ! -S ${SOCKET} ] && SOCKET=/tmp/es.socket + + chown root.speech ${SOCKET} + chmod 666 ${SOCKET} + + eend $? +} + +stop() { + ebegin "Stopping eflite" + start-stop-daemon --stop --quiet --pidfile /var/run/eflite.pid + eend $? +} |