From db8c1a867d5f622de10e76fe146d2670a3c0031d Mon Sep 17 00:00:00 2001 From: Michal Rus Date: Fri, 26 Dec 2014 03:21:48 +0100 Subject: [PATCH] =?UTF-8?q?Replace=20bash=20image=20with=20java=E2=80=99s?= =?UTF-8?q?=20in=20akka-bash-template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There’s no need to keep the bash process running. Also, bash does not forward SIGTERM etc. to its child processes, so killing bash did not kill the java process. --- .../com/typesafe/sbt/packager/archetypes/akka-bash-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/akka-bash-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/akka-bash-template index 9fd9e6d4c..98c4e5c35 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/akka-bash-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/akka-bash-template @@ -11,4 +11,4 @@ ${{template_declares}} # we will use akka_classpath instead the app_classpath [ -n "$akka_classpath" ] || akka_classpath="$AKKA_HOME/lib/*:$AKKA_HOME/conf" -java $JAVA_OPTS -cp "$akka_classpath" -Dakka.home="$AKKA_HOME" -Dakka.kernel.quiet=false akka.kernel.Main $app_mainclass +exec java $JAVA_OPTS -cp "$akka_classpath" -Dakka.home="$AKKA_HOME" -Dakka.kernel.quiet=false akka.kernel.Main $app_mainclass