From 22d29acc9a4a843f5a7194ff112e75ad42b43054 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 3 Apr 2012 23:17:56 +0200 Subject: [PATCH] Bug #1197: stderr information is redirected to another file, it does not collide with the "standard" logging info (cherry picked from commit c32157fedf7f3ccb14e86e5824aeea24d6f4ed44) --- src/cloud/ec2/bin/econe-server | 4 +++- src/cloud/occi/bin/occi-server | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cloud/ec2/bin/econe-server b/src/cloud/ec2/bin/econe-server index 5b1d23a9f2..1327de4ed1 100755 --- a/src/cloud/ec2/bin/econe-server +++ b/src/cloud/ec2/bin/econe-server @@ -21,12 +21,14 @@ if [ -z "$ONE_LOCATION" ]; then ECONE_SERVER=/usr/lib/one/ruby/cloud/econe/econe-server.rb ECONE_LOCK_FILE=/var/lock/one/.econe.lock ECONE_LOG=/var/log/one/econe-server.log + ECONE_LOG_ERROR=/var/log/one/econe-server.error ECONE_ETC=/etc/one/econe.conf else ECONE_PID=$ONE_LOCATION/var/econe-server.pid ECONE_SERVER=$ONE_LOCATION/lib/ruby/cloud/econe/econe-server.rb ECONE_LOCK_FILE=$ONE_LOCATION/var/.econe.lock ECONE_LOG=$ONE_LOCATION/var/econe-server.log + ECONE_LOG_ERROR=$ONE_LOCATION/var/econe-server.error ECONE_ETC=$ONE_LOCATION/etc/econe.conf fi @@ -58,7 +60,7 @@ start() fi # Start the econe-server daemon - ruby $ECONE_SERVER > $ECONE_LOG 2>&1 & + ruby $ECONE_SERVER >$ECONE_LOG 2>$ECONE_LOG_ERROR & LASTRC=$? LASTPID=$! diff --git a/src/cloud/occi/bin/occi-server b/src/cloud/occi/bin/occi-server index 5218f42e77..e9615a2108 100755 --- a/src/cloud/occi/bin/occi-server +++ b/src/cloud/occi/bin/occi-server @@ -21,12 +21,14 @@ if [ -z "$ONE_LOCATION" ]; then OCCI_SERVER=/usr/lib/one/ruby/cloud/occi/occi-server.rb OCCI_LOCK_FILE=/var/lock/one/.occi.lock OCCI_LOG=/var/log/one/occi-server.log + OCCI_LOG_ERROR=/var/log/one/occi-server.error OCCI_ETC=/etc/one/occi-server.conf else OCCI_PID=$ONE_LOCATION/var/occi-server.pid OCCI_SERVER=$ONE_LOCATION/lib/ruby/cloud/occi/occi-server.rb OCCI_LOCK_FILE=$ONE_LOCATION/var/.occi.lock OCCI_LOG=$ONE_LOCATION/var/occi-server.log + OCCI_LOG_ERROR=$ONE_LOCATION/var/occi-server.error OCCI_ETC=$ONE_LOCATION/etc/occi-server.conf fi @@ -58,7 +60,7 @@ start() fi # Start the occi-server daemon - ruby $OCCI_SERVER > $OCCI_LOG 2>&1 & + ruby $OCCI_SERVER >$OCCI_LOG 2>$OCCI_LOG_ERROR & LASTRC=$? LASTPID=$!