cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [48/51] [abbrv] git commit: refs/heads/ui-quick-view-v2 - Revert "Make sure initial log messages go somewhere for agent and usage"
Date Thu, 21 Feb 2013 21:45:19 GMT
Revert "Make sure initial log messages go somewhere for agent and usage"

The dreaded wrong-tree-active-syndrome

This reverts commit 9589f9fe5f401df90f7b356c9186d012c8f887ab.


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

Branch: refs/heads/ui-quick-view-v2
Commit: 9b5774363d41c82bf7430bd328970d4c85b2cf55
Parents: ae90259
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Authored: Fri Feb 15 15:50:09 2013 +0100
Committer: Edison Su <sudison@gmail.com>
Committed: Thu Feb 21 11:22:50 2013 -0800

----------------------------------------------------------------------
 packaging/centos63/cloud-agent.rc |    5 ++---
 packaging/centos63/cloud-usage.rc |    5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9b577436/packaging/centos63/cloud-agent.rc
----------------------------------------------------------------------
diff --git a/packaging/centos63/cloud-agent.rc b/packaging/centos63/cloud-agent.rc
index 19782b7..acf8131 100755
--- a/packaging/centos63/cloud-agent.rc
+++ b/packaging/centos63/cloud-agent.rc
@@ -31,8 +31,7 @@ whatami=cloudstack-agent
 SHORTNAME="$whatami"
 PIDFILE=/var/run/"$whatami".pid
 LOCKFILE=/var/lock/subsys/"$SHORTNAME"
-LOGDIR=/var/log/cloudstack/agent
-LOGFILE=${LOGFIR}/agent.log
+LOGFILE=/var/log/cloudstack/agent/agent.log
 PROGNAME="Cloud Agent"
 CLASS="com.cloud.agent.AgentShell"
 JSVC=`which jsvc 2>/dev/null`;
@@ -68,7 +67,7 @@ export CLASSPATH="$SCP:$DCP:$ACP:$JCP:/etc/cloudstack/agent:/usr/share/cloudstac
 start() {
         echo -n $"Starting $PROGNAME: "
 	if hostname --fqdn >/dev/null 2>&1 ; then
-		$JSVC -cp "$CLASSPATH" -outfile "${LOGDIR}/cloudstack-agent.out" -errfile "${LOGDIR}/cloudstack-agent.err"
-pidfile "$PIDFILE" $CLASS
+		$JSVC -cp "$CLASSPATH" -pidfile "$PIDFILE" $CLASS
 		RETVAL=$?
 		echo
 	else

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9b577436/packaging/centos63/cloud-usage.rc
----------------------------------------------------------------------
diff --git a/packaging/centos63/cloud-usage.rc b/packaging/centos63/cloud-usage.rc
index dc97cd3..8bee5ae 100755
--- a/packaging/centos63/cloud-usage.rc
+++ b/packaging/centos63/cloud-usage.rc
@@ -35,8 +35,7 @@
 SHORTNAME="cloudstack-usage"
 PIDFILE=/var/run/"$SHORTNAME".pid
 LOCKFILE=/var/lock/subsys/"$SHORTNAME"
-LOGDIR=/var/log/cloudstack/usage
-LOGFILE=${LOGDIR}/usage.log
+LOGFILE=/var/log/cloudstack/usage/usage.log
 PROGNAME="CloudStack Usage Monitor"
 CLASS="com.cloud.usage.UsageServer"
 PROG="jsvc"
@@ -80,7 +79,7 @@ start() {
 
     echo -n "Starting $PROGNAME" "$SHORTNAME"
 
-    if daemon --pidfile $PIDFILE $DAEMON -cp "$CLASSPATH"  -outfile "${LOGDIR}/cloudstack-usage.out"
-errfile "${LOGDIR}/cloudstack-usage.err" -pidfile "$PIDFILE" -user "$USER" -Dpid=$$ $CLASS
+    if daemon --pidfile $PIDFILE $DAEMON -cp "$CLASSPATH" -pidfile "$PIDFILE" -user "$USER"
-errfile SYSLOG -Dpid=$$ $CLASS
         RETVAL=$?
     then
         rc=0


Mime
View raw message