From 0d9d9a1ceeae5c4801c3b266b79ee7904e0f78a1 Mon Sep 17 00:00:00 2001 From: Alexey Kardapoltsev Date: Tue, 4 Mar 2014 11:16:32 +0600 Subject: [PATCH 1/2] play pid file path fixed in /etc/default template --- .../com/typesafe/sbt/packager/archetypes/etc-default-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/etc-default-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/etc-default-template index d79474746..e411aabdc 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/etc-default-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/etc-default-template @@ -25,7 +25,7 @@ # -Dkey=val # For play applications you may set -# -Dpidfile.path=/var/run/${{app_name}}.pid +# -Dpidfile.path=/var/run/${{app_name}}/play.pid # Turn on JVM debugging, open at the given port # -jvm-debug From ce3fc95723d9a518bb8643505951a6e536ad89f5 Mon Sep 17 00:00:00 2001 From: Alexey Kardapoltsev Date: Tue, 4 Mar 2014 12:58:56 +0600 Subject: [PATCH 2/2] pid file location changed to /var/run/app_name/ for systemV --- .../sbt/packager/archetypes/systemv/start-debian-template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/resources/com/typesafe/sbt/packager/archetypes/systemv/start-debian-template b/src/main/resources/com/typesafe/sbt/packager/archetypes/systemv/start-debian-template index 40f2bc7ef..8a42ab7a3 100644 --- a/src/main/resources/com/typesafe/sbt/packager/archetypes/systemv/start-debian-template +++ b/src/main/resources/com/typesafe/sbt/packager/archetypes/systemv/start-debian-template @@ -13,14 +13,13 @@ source /lib/init/vars.sh source /lib/lsb/init-functions -PIDFILE=/var/run/${{app_name}}.pid +PIDFILE=/var/run/${{app_name}}/running.pid if [ -z "$DAEMON_USER" ]; then DAEMON_USER=${{daemon_user}} fi -# smb could define some additional options in $RUN_OPTS RUN_CMD="${{chdir}}/bin/${{app_name}}"