Commit 44d315fe authored by Ramon Nou's avatar Ramon Nou
Browse files

added GKFS_CLIENT if not defined

parent 5585b236
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -9,6 +9,10 @@ if [ -z "$LIBGKFS_HOSTS_FILE" ]; then
    LIBGKFS_HOSTS_FILE=/tmp/gekkofs/gkfs_hosts.txt
fi

if [ -z "$GKFS_CLIENT" ]; then
    GKFS_CLIENT=/home/rnou/iodeps/lib/libgkfs_intercept.so
fi

if [ "$1" == "start" ]; then
    echo "Starting GEKKOFS"

@@ -26,6 +30,7 @@ if [ "$1" == "start" ]; then
    srun -N $num_nodes -n $num_nodes --oversubscribe --overlap --cpus-per-task=1 --mem-per-cpu=1 --export=ALL /usr/bin/bash -c "mkdir -p $mountdir; mkdir -p $datadir" 
    srun -N $num_nodes -n $num_nodes --oversubscribe --overlap --cpus-per-task=1 --mem-per-cpu=1 --export=ALL /usr/bin/bash -c "$GKFS_DAEMON --rootdir $datadir --mountdir $mountdir -H $LIBGKFS_HOSTS_FILE" &
    sleep 4
    echo "Started GEKKOFS"
elif [ "$1" == "stop" ]; then
    echo "Stopping GEKKOFS"