summaryrefslogtreecommitdiff
blob: 21b0d8f3589db63ba9b8c7134d7ccd43f75a5b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/eflite/files/eflite.rc,v 1.4 2004/07/14 21:04:28 agriffis 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/eflite/es.conf | sed 's/^sockname=//'`
	[ ! -S ${SOCKET} ] && SOCKET=/tmp/es.socket

	chown root.speech ${SOCKET}
	chmod 660 ${SOCKET}

	eend $?
}

stop() {
	ebegin "Stopping eflite"
	start-stop-daemon --stop --quiet --pidfile /var/run/eflite.pid
	eend $?
}