Magellan Linux

Contents of /trunk/speech-dispatcher/speech-dispatcherd.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1454 - (show annotations) (download)
Thu Jul 28 15:14:10 2011 UTC (12 years, 9 months ago) by niro
File size: 786 byte(s)
-added speech-dispatcher service files
1 #!/bin/bash
2 # $Id$
3
4 #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
5 #%start: 30
6 #%stop: 87
7
8 #deps
9 #%needs:
10 #%before:
11 #%after:
12
13 source /etc/conf.d/rc
14 source $rc_functions
15
16 case "$1" in
17 start)
18 rc_print "Starting Speech-Dispatcher Service ..."
19 start-stop-daemon --start --quiet --background /usr/bin/speech-dispatcher -- -d
20 evaluate_retval
21
22 update_svcstatus $1
23 splash svc_started "$(basename $0)" 0
24 ;;
25
26 stop)
27 rc_print "Stopping SSH Server ..."
28 start-stop-daemon --stop --quiet --pidfile /var/run/speech-dispatcher.pid
29 evaluate_retval
30
31 update_svcstatus $1
32 splash svc_stopped "$(basename $0)" 0
33 ;;
34
35 restart)
36 $0 stop
37 sleep 1
38 $0 start
39 ;;
40
41 status)
42 statusproc /usr/bin/speech-dispatcher
43 ;;
44
45 *)
46 rc_echo "Usage: $0 {start|stop|restart|status}"
47 exit 1
48 ;;
49 esac

Properties

Name Value
svn:executable *