summaryrefslogtreecommitdiffstats
path: root/speech-dispatcher/speechd.rc
blob: 3dca81ce821a710b018dec7553d94d49c730dc21 (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
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/speechd
#
# Description : Speech-Dispatcher Daemon
# Authors     : piernov - <piernov@piernov.org>
#
########################################################################

. /etc/sysconfig/rc
. ${rc_functions}

case "${1}" in
	start)
		boot_mesg "Starting speech dispatcher Daemon"
		loadproc /usr/bin/speech-dispatcher -d
		;;
	stop)
		boot_mesg "Stopping speech dispatcher Daemon"
		killproc /usr/bin/speech-dispatcher 
		;;
	reload)
		boot_mesg "Reloading speech dispatcher Daemon"
		reloadproc /usr/bin/speech-dispatcher -d
		;;
	restart)
		${0} stop
		sleep 1
		${0} start
		;;
	status)
		statusproc speech-dispatcher
		;;
	*)
		echo "Usage: ${0} {start|stop|reload|restart|status}"
		exit 1
		;;
esac

# End $rc_base/init.d/sysklogd