#!/bin/sh
#    Startup script for Galatea
#
#  Copyright (c) 1989, 1990 Massachusetts Institute of Technology
set -x
case "$1" in
'start')
    if [ -f $SERVDIR/galatead ]
    then
       $SERVDIR/galatead &
       echo Galatea Network Video Device Control System started.>>/dev/console
    else
       echo Unable to start Galatea.>>/dev/console
    fi
    ;;
'stop')
    if [ -r $SERVDIR/galatead.pid ]
    then
         kill `cat $SERVDIR/galatead.pid`
         echo Galatea Network Video Device Control System shutdown.>>/dev/consoel
    else
         echo Unable to shutdown Galatea.>>/dev/console
    fi
    ;;
esac
