diff options
Diffstat (limited to 'extra/speech-dispatcher/speechd.rc')
-rwxr-xr-x | extra/speech-dispatcher/speechd.rc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/extra/speech-dispatcher/speechd.rc b/extra/speech-dispatcher/speechd.rc new file mode 100755 index 000000000..a2536cfe2 --- /dev/null +++ b/extra/speech-dispatcher/speechd.rc @@ -0,0 +1,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 system log daemon config file..." + 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 |