diff --git a/src/ozones/Server/bin/ozones-server b/src/ozones/Server/bin/ozones-server index 720aad1742..cf75a32d8c 100755 --- a/src/ozones/Server/bin/ozones-server +++ b/src/ozones/Server/bin/ozones-server @@ -29,6 +29,7 @@ else OZONES_SERVER=$OZONES_LOCATION/ozones-server.rb OZONES_LOCK_FILE=$ONE_LOCATION/var/.ozones.lock OZONES_LOG=$ONE_LOCATION/var/ozones-server.log + OZONES_LOG_ERROR=$ONE_LOCATION/var/ozones-server.error OZONES_CONF=$ONE_LOCATION/etc/ozones-server.conf fi @@ -60,7 +61,7 @@ start() # Start the ozones daemon touch $OZONES_LOCK_FILE - ruby $OZONES_SERVER > $OZONES_LOG 2>&1 & + ruby $OZONES_SERVER > $OZONES_LOG 2>$OZONES_LOG_ERROR & LASTPID=$! if [ $? -ne 0 ]; then echo "Error executing $OZONES_SERVER, please check the log $OZONES_LOG" diff --git a/src/sunstone/bin/sunstone-server b/src/sunstone/bin/sunstone-server index 171a8a6938..5065a5122d 100755 --- a/src/sunstone/bin/sunstone-server +++ b/src/sunstone/bin/sunstone-server @@ -28,6 +28,7 @@ else SUNSTONE_SERVER=$ONE_LOCATION/lib/sunstone/sunstone-server.rb SUNSTONE_LOCK_FILE=$ONE_LOCATION/var/.sunstone.lock SUNSTONE_LOG=$ONE_LOCATION/var/sunstone.log + SUNSTONE_LOG_ERROR=$ONE_LOCATION/var/sunstone.error SUNSTONE_CONF=$ONE_LOCATION/etc/sunstone-server.conf fi @@ -59,7 +60,7 @@ start() # Start the sunstone daemon touch $SUNSTONE_LOCK_FILE - ruby $SUNSTONE_SERVER > $SUNSTONE_LOG 2>&1 & + ruby $SUNSTONE_SERVER > $SUNSTONE_LOG 2>$SUNSTONE_LOG_ERROR & LASTPID=$! if [ $? -ne 0 ]; then echo "Error executing $SUNSTONE_SERVER, please check the log $SUNSTONE_LOG"