columbia / crane

Transparent Paxos
44 stars 16 forks source link

env variables $MY_PROXY and $MY_XTERN #2

Closed vschiavoni closed 8 years ago

vschiavoni commented 9 years ago

The script apacheinstallbinapachectl relies on the existence of those two variables:

# Start the application server
if [ $MY_XTERN"X" = "1X" ]; then
LD_PRELOAD=$XTERN_ROOT/dync_hook/interpose.so \
$MSMR_ROOT/apps/apache/install/bin/apachectl -f $MSMR_ROOT/eval/current/server7000/httpd7000.conf -k start &> ../server7000/${TEST_NAME}_0_${NO}_s${LOG_SUFFIX} &
REAL_SERVER_PID_0=$!
else
$MSMR_ROOT/apps/apache/install/bin/apachectl -f $MSMR_ROOT/eval/current/server7000/httpd7000.conf -k start &> ../server7000/${TEST_NAME}_0_${NO}_s${LOG_SUFFIX} &
REAL_SERVER_PID_0=$!
fi

echo "sleep some time"
sleep ${SLEEP_TIME}

# Start our proxy
if [ $MY_PROXY"X" = "1X" ]; then
${SERVER_PROGRAM} -n 0 -r -m s -c ${CONFIG_FILE} -l ./log 1>./log/node_0_${NO}_stdout 2>./log/node_0_${NO}_stderr &
fi

Those variables are defined by the eval.py script that generates the apacheinstallbinapachectl : https://github.com/columbia/crane/blob/master/eval/eval.py#L315 https://github.com/columbia/crane/blob/master/eval/eval.py#L324

Could you explain where those variables should point to ? Thanks

hemingcui commented 9 years ago

Hi Valerio, Thanks for your interests on Crane. The script you ran is already obsolete. Please pull the crane repo and follow our latest crane/README.md file on how to setup and run crane.

On Tue, Sep 15, 2015 at 7:54 PM, Valerio Schiavoni <notifications@github.com

wrote:

The script apacheinstallbinapachectl relies on the existence of those two variables:

Start the application serverif [ $MY_XTERN"X" = "1X" ]; then

LD_PRELOAD=$XTERN_ROOT/dync_hook/interpose.so \$MSMR_ROOT/apps/apache/install/bin/apachectl -f $MSMR_ROOT/eval/current/server7000/httpd7000.conf -k start &> ../server7000/${TEST_NAME}0${NO}_s${LOG_SUFFIX} & REAL_SERVER_PID_0=$!else$MSMR_ROOT/apps/apache/install/bin/apachectl -f $MSMR_ROOT/eval/current/server7000/httpd7000.conf -k start &> ../server7000/${TEST_NAME}0${NO}_s${LOG_SUFFIX} & REAL_SERVER_PID_0=$!fi echo "sleep some time" sleep ${SLEEP_TIME}

Start our proxyif [ $MY_PROXY"X" = "1X" ]; then${SERVER_PROGRAM} -n 0 -r -m s -c ${CONFIG_FILE} -l ./log 1>./log/node0${NO}_stdout 2>./log/node0${NO}_stderr &fi

Could you explain where those variables should point to ? Thanks

— Reply to this email directly or view it on GitHub https://github.com/columbia/crane/issues/2.

vschiavoni commented 8 years ago

Closing my own issue, as this was obsolete.