summaryrefslogtreecommitdiffstats
path: root/extra/speech-dispatcher/speechd.rc
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2011-07-17 20:54:44 +0200
committertnut <tnut at nutyx dot com>2011-07-17 20:54:44 +0200
commit1ca4eb80e6d8eaba2cd5321424ee63de16afb0d6 (patch)
tree63e7c95ada9fbd29e76f7814423e068323ead356 /extra/speech-dispatcher/speechd.rc
parent9726b1fbe5d9c4634f435a345640528d34c843e2 (diff)
parentfe2b15e09d4c96e113b965cfb02d27f490508c04 (diff)
downloadnutyx-pakxe-1ca4eb80e6d8eaba2cd5321424ee63de16afb0d6.tar.gz
nutyx-pakxe-1ca4eb80e6d8eaba2cd5321424ee63de16afb0d6.tar.bz2
nutyx-pakxe-1ca4eb80e6d8eaba2cd5321424ee63de16afb0d6.tar.xz
nutyx-pakxe-1ca4eb80e6d8eaba2cd5321424ee63de16afb0d6.zip
Merge branch 'master' of ssh://kiao.no-ip.info:443/~/pakxe
Diffstat (limited to 'extra/speech-dispatcher/speechd.rc')
-rwxr-xr-xextra/speech-dispatcher/speechd.rc40
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