Skip to content

Commit

Permalink
Merge pull request #13 from aogonevskiy/master
Browse files Browse the repository at this point in the history
Fixes for AZK-119 and AZK-120
Both fixes looks good. Thanks for you help.
  • Loading branch information
rbpark committed Aug 29, 2011
2 parents 72c1e25 + 88450c5 commit 6ff5f54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion azkaban/src/java/azkaban/app/LoggingJob.java
Expand Up @@ -113,8 +113,11 @@ public void run() {
throw new RuntimeException(e);
}

if(jobAppender != null)
if(jobAppender != null) {
_logger.removeAppender(jobAppender);
jobAppender.close();
}

}
}
}
5 changes: 4 additions & 1 deletion bin/azkaban-server.sh
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 6ff5f54

Please sign in to comment.