aboutsummaryrefslogtreecommitdiffstats
path: root/spo256/speak.init
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2025-01-14 16:06:02 -0600
committerWilliam Harrington <kb0iic@berzerkula.org>2025-01-14 16:06:02 -0600
commit0cc9b20c15460213e488bf5e70963b941482f628 (patch)
treebb0143245583ec846630f39bfa2258dba640ccd7 /spo256/speak.init
parent0e084ade5069756d487b5c948c48b777e37c00c9 (diff)
Add source.
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
+