summaryrefslogtreecommitdiff
blob: f0777e1c2f25c66315f7bd36c697f7b310e2683a (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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

depend() {
	after modules
	use alsasound pulseaudio
}

start() {
	ebegin "Starting espeakup"
	start-stop-daemon --start --exec /usr/bin/espeakup \
		-- ${ESPEAKUP_OPTS}
	eend $?
}

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

restart() {
	svc_stop || exit 1
	sleep 2
	svc_start || exit 1
}