cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [03/44] git commit: updated refs/heads/4.9-bountycastle-daan to a001d75
Date Mon, 02 May 2016 14:36:24 GMT
CLOUDSTACK-9283: add pid to java arguments in systemd/cloudstack-usage.service


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ce180796
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ce180796
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ce180796

Branch: refs/heads/4.9-bountycastle-daan
Commit: ce180796e9c6f2a1a96d5ae51f8a1ab592c42090
Parents: 3d9919e
Author: David Amorim Faria <d.amorim-faria@tech.leaseweb.com>
Authored: Wed Feb 10 16:46:03 2016 +0100
Committer: David Amorim Faria <d.amorim-faria@tech.leaseweb.com>
Committed: Wed Feb 10 16:46:03 2016 +0100

----------------------------------------------------------------------
 packaging/systemd/cloudstack-usage.service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce180796/packaging/systemd/cloudstack-usage.service
----------------------------------------------------------------------
diff --git a/packaging/systemd/cloudstack-usage.service b/packaging/systemd/cloudstack-usage.service
index 9a1827d..d80aba6 100644
--- a/packaging/systemd/cloudstack-usage.service
+++ b/packaging/systemd/cloudstack-usage.service
@@ -27,10 +27,11 @@ Environment=JAVA_HOME=/usr/lib/jvm/jre
 Environment=JAVA_HEAP_INITIAL=256m
 Environment=JAVA_HEAP_MAX=2048m
 Environment=JAVA_CLASS=com.cloud.usage.UsageServer
+Environment=JAVA_PID=$$
 ExecStart=/bin/sh -ec '\
     export UCP=`ls /usr/share/cloudstack-usage/cloud-usage-*.jar /usr/share/cloudstack-usage/lib/*.jar
| tr "\\n" ":"`; \
     export CLASSPATH="$UCP:/etc/cloudstack/usage:/usr/share/java/mysql-connector-java.jar";
\
-    ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH"
$JAVA_CLASS'
+    ${JAVA_HOME}/bin/java -Dpid=${JAVA_PID} -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX}
-cp "$CLASSPATH" $JAVA_CLASS'
 Restart=always
 RestartSec=10s
 


Mime
View raw message