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=$!