dynamodb-local: fix wrapper to exec java

This is more efficient and allows dynamodb-local to be controlled by
managers like Supervisor which do not play well with java launched as a
subprocess.
This commit is contained in:
Sean Fisk 2016-04-22 03:34:28 -04:00 committed by Mike McQuaid
parent 017225a955
commit e50c042c2e

View file

@ -17,7 +17,7 @@ class DynamodbLocal < Formula
def bin_wrapper; <<-EOS.undent
#!/bin/sh
cd #{data_path} && java -Djava.library.path=#{libexec}/DynamodbLocal_lib -jar #{libexec}/DynamoDBLocal.jar "$@"
cd #{data_path} && exec java -Djava.library.path=#{libexec}/DynamodbLocal_lib -jar #{libexec}/DynamoDBLocal.jar "$@"
EOS
end