summaryrefslogtreecommitdiff
blob: 255742b4a9de4d3eedc467e201121ff23944a9f8 (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
#!/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/speechd/files/speechd.rc,v 1.4 2005/08/02 08:08:10 eradicator Exp $

depend() {
	need festival
}

start() {
	ebegin "Starting speechd"
	start-stop-daemon --start --group speech --exec /usr/bin/speechd -- -Q
	if [[ -p /dev/speech ]] ; then
		chmod 660 /dev/speech
		chgrp speech /dev/speech
	fi
	eend $?
}

stop() {
	ebegin "Stopping speechd"
	start-stop-daemon --stop --quiet --pidfile /var/run/speechd.pid
	if [[ -p /dev/speech ]] ; then
		rm /dev/speech
	fi
	eend $?
}