cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kous...@apache.org
Subject [5/50] [abbrv] git commit: refs/heads/cisco-vnmc-api-integration - Capture stderr and stdout of the jsvc run services (agent and usage)
Date Wed, 13 Mar 2013 06:25:05 GMT
Capture stderr and stdout of the jsvc run services (agent and usage)

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

Branch: refs/heads/cisco-vnmc-api-integration
Commit: bc4abcf14d7b89a500331ab7376dd144c66c012f
Parents: 55d67a0
Author: Hugo Trippaers <trippie@gmail.com>
Authored: Fri Feb 22 14:13:00 2013 +0100
Committer: Hugo Trippaers <trippie@gmail.com>
Committed: Fri Feb 22 14:13:57 2013 +0100

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/bc4abcf1/packaging/centos63/cloud-agent.rc
----------------------------------------------------------------------
diff --git a/packaging/centos63/cloud-agent.rc b/packaging/centos63/cloud-agent.rc
index acf8131..65b0cd0 100755
--- a/packaging/centos63/cloud-agent.rc
+++ b/packaging/centos63/cloud-agent.rc
@@ -31,7 +31,8 @@ whatami=cloudstack-agent
 SHORTNAME="$whatami"
 PIDFILE=/var/run/"$whatami".pid
 LOCKFILE=/var/lock/subsys/"$SHORTNAME"
-LOGFILE=/var/log/cloudstack/agent/agent.log
+LOGDIR=/var/log/cloudstack/agent
+LOGFILE=${LOGDIR}/agent.log
 PROGNAME="Cloud Agent"
 CLASS="com.cloud.agent.AgentShell"
 JSVC=`which jsvc 2>/dev/null`;
@@ -67,7 +68,8 @@ 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" -pidfile "$PIDFILE" $CLASS
+		$JSVC -cp "$CLASSPATH" -pidfile "$PIDFILE" \
+		    -errfile $LOGDIR/cloudstack-agent.out -outfile $LOGDIR/cloudstack-agent.out $CLASS
 		RETVAL=$?
 		echo
 	else

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


Mime
View raw message