Skip to content
Snippets Groups Projects
Commit 44d315fe authored by Ramon Nou's avatar Ramon Nou
Browse files

added GKFS_CLIENT if not defined

parent 5585b236
No related branches found
No related tags found
No related merge requests found
Pipeline #4557 passed
...@@ -9,6 +9,10 @@ if [ -z "$LIBGKFS_HOSTS_FILE" ]; then ...@@ -9,6 +9,10 @@ if [ -z "$LIBGKFS_HOSTS_FILE" ]; then
LIBGKFS_HOSTS_FILE=/tmp/gekkofs/gkfs_hosts.txt LIBGKFS_HOSTS_FILE=/tmp/gekkofs/gkfs_hosts.txt
fi fi
if [ -z "$GKFS_CLIENT" ]; then
GKFS_CLIENT=/home/rnou/iodeps/lib/libgkfs_intercept.so
fi
if [ "$1" == "start" ]; then if [ "$1" == "start" ]; then
echo "Starting GEKKOFS" echo "Starting GEKKOFS"
...@@ -26,6 +30,7 @@ if [ "$1" == "start" ]; then ...@@ -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 "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" & 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 sleep 4
echo "Started GEKKOFS"
elif [ "$1" == "stop" ]; then elif [ "$1" == "stop" ]; then
echo "Stopping GEKKOFS" echo "Stopping GEKKOFS"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment