view etl/bin/run.sh @ 8838:1fa03f3c9d3d

Use the webservers log for MapServer. This should make this configuration less dependend on a specific system and reduces the places to search in when errors occur.
author Tom Gottfried <tom@intevation.de>
date Tue, 30 May 2017 12:51:42 +0200
parents 4542d23f98bf
children 0a5239a1e46e
line wrap: on
line source
#!/bin/bash

APP=org.dive4elements.river.etl.aft.Sync

DIR=`dirname $0`
DIR=`readlink -f $DIR`

CONF=${1:-../doc/conf.xml}
CONF=$(readlink -f $CONF)
LOG4J_CONF=${2:-log4j.properties}
LOG4J_CONF=$(readlink -f $LOG4J_CONF)

CLASSPATH=
for l in `find "$DIR/lib" -name \*.jar -print`; do
   CLASSPATH=$CLASSPATH:$l
done

export CLASSPATH

exec java \
    -Dlog4j.configuration=file://$LOG4J_CONF \
    -Dconfig.file=$CONF \
    $APP

http://dive4elements.wald.intevation.org