Skip to content

Commit

Permalink
AZK-119 azkaban can't find log4j.xml when is run from bin directory (…
Browse files Browse the repository at this point in the history
…./azkaban.server.sh)
  • Loading branch information
aogonevskiy committed Aug 26, 2011
1 parent 72c1e25 commit 8955337
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/azkaban-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
# limitations under the License.
#

PRGDIR=`dirname "$0"`
AZKABAN_HOME=`cd "$PRGDIR/.." ; pwd`

base_dir=$(dirname $0)/..

for file in $base_dir/lib/*.jar;
Expand All @@ -37,4 +40,4 @@ if [ -z $AZKABAN_OPTS ]; then
AZKABAN_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
fi

java -Dlog4j.configuration=$base_dir/azkaban/log4j.xml $AZKABAN_OPTS -cp $CLASSPATH azkaban.app.AzkabanApp --static-dir $base_dir/azkaban/web/static $@
java -Dlog4j.configuration=file://$AZKABAN_HOME/azkaban/log4j.xml $AZKABAN_OPTS -cp $CLASSPATH azkaban.app.AzkabanApp --static-dir $base_dir/azkaban/web/static $@

0 comments on commit 8955337

Please sign in to comment.