head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	99.06.11.05.40.21;	author bernie;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial checkin of all JServWatcher code and helper scripts along with
a sample config file. I hope the code is documented well enough
to explain things.
@
text
@#!/bin/sh
#
#
# Note that this script should only be run via watcherctl.  It should be
# run as 'nobody'; we don't want the server running as root.  jservctl
# makes sure that the files this script needs are writable by nobody.
#
#
# |||||||||||||||||||| START CONFIGURATION SECTION  ||||||||||||||||||||
# --------------------                              --------------------
# 
TARGETDIR=/usr/local/apache
#
# the path to your PID file
PIDFILE=$TARGETDIR/logs/watcher.pid
#
execdir=$TARGETDIR/jserv
jservjar=$TARGETDIR/lib/ApacheJServ.jar
config=$TARGETDIR/jserv/watcher.conf
app=com.talkcity.util.JServWatcher
classes=.:$TARGETDIR/lib/ApacheJServ.jar
log=$TARGETDIR/logs/watcher_log
#
JAVA=/bin/java
#
# --------------------                              --------------------
# ||||||||||||||||||||   END CONFIGURATION SECTION  ||||||||||||||||||||

cd $execdir
$JAVA -cp $classes $app $config >> $log 2>&1 &
echo $! > $PIDFILE
@
