#!/bin/sh

# Start the Event Server Handler for dynamic web pages:

LOCALDIR=`dirname $0`

LOGFILE="/tmp/PAKCS_EHServer_LOG"

echo "Event Handler Server started at `date`" > $LOGFILE
chmod -f 666 $LOGFILE # make log file accessible for everybody

nohup echo 'serve' | $LOCALDIR/HtmlServer.state  >> $LOGFILE 2>&1  &

sleep 2 # wait for startup
