aboutsummaryrefslogtreecommitdiffstats
path: root/spo256/speak.init
diff options
context:
space:
mode:
Diffstat (limited to 'spo256/speak.init')
-rw-r--r--spo256/speak.init54
1 files changed, 54 insertions, 0 deletions
diff --git a/spo256/speak.init b/spo256/speak.init
new file mode 100644
index 0000000..0c46b8a
--- /dev/null
+++ b/spo256/speak.init
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# modify FILESYSTEMS to activate and use vmon.
+FILESYSTEMS="/"
+
+mode=$1
+
+if [ $# = 0 ] ; then
+ mode='rc'
+fi
+
+if [ ! "$mode" = 'rc' ] ; then
+ # Source function library.
+ . /etc/rc.d/init.d/functions
+
+ # Source networking configuration.
+ . /etc/sysconfig/network
+
+ # Check that networking is up.
+ [ ${NETWORKING} = "no" ] && exit 0
+fi
+
+# See how we were called.
+case "$mode" in
+ rc)
+ echo "Starting SPO256-AL2 server"
+ spo256
+ if [ ! -z "$FILESYSTEMS" ] ; then
+ vmon $FILESYSTEMS
+ fi
+ ;;
+ start)
+ echo -n "Starting SPO256-AL2 speech services: "
+ daemon spo256
+ if [ ! -z "$FILESYSTEMS" ] ; then
+ daemon vmon $FILESYSTEMS
+ fi
+ echo
+ touch /var/lock/subsys/speak
+ ;;
+ stop)
+ echo -n "Shutting down SPO256-AL2 speech services: "
+ killproc spo256
+ if [ ! -z "$FILESYSTEMS" ] ; then
+ killproc vmon
+ fi
+ rm -f /var/lock/subsys/speak
+ echo ""
+ ;;
+ *)
+ echo "Usage: speak.init {start|stop}"
+ exit 1
+esac
+