mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #1197: stderr information is redirected to another file, it does not collide with the "standard" logging info
(cherry picked from commit c32157fedf7f3ccb14e86e5824aeea24d6f4ed44)
This commit is contained in:
parent
5c7f86c5e9
commit
22d29acc9a
@ -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=$!
|
||||
|
@ -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=$!
|
||||
|
Loading…
x
Reference in New Issue
Block a user