#!/usr/bin/ksh
#
# This script is used to start a DOC OrbixWeb daemon.
#
# It must reside in the same directory where the DOC service binaries
# are accessible from and must be in a parallel directory to DOC 
# directory, ie, the DOC should be ../DOC.
#
# The OrbixWeb daemon will write its stdout/err into this script's directory.
#

script_path=`whence $0` >/dev/null 2>&1
script_home=`dirname $script_path`

ALLEGRO_CL_HOME=$script_home ; export ALLEGRO_CL_HOME ;

(exec $script_home/../DOC/bin/setup_servers -textConsole > $script_home/`hostname`-doc-server-stdout) 2>$script_home/`hostname`-doc-server-stderr &
