#!/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