Verified Commit 819d89f7 authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Feat(batch): simple batch processing

parent 03023dae
...@@ -23,7 +23,21 @@ BASENAME="`basename $0`" ...@@ -23,7 +23,21 @@ BASENAME="`basename $0`"
DIRNAME="`dirname $0`" DIRNAME="`dirname $0`"
source $DIRNAME/params source $DIRNAME/params
# FIXME # Check if there are any mining limits
# Batch locally or in remote servers? if ! echo $MKP224O_RUN_FLAGS | grep -q -- "-n [0-9]"; then
# Check if there are any limits for each pool? # Display warning
# Iterate over all pools and start the mining process echo "WARNING: cannot find -n flag at MKP224O_RUN_FLAGS"
echo "Please make sure that you have mining limits for your pools, otherwise this script won't stop by itself."
fi
# Iterate over all pools
for pool in `ls $POOLS`; do
# Skip the example pool
if [ "$pool" == "example.org" ]; then
continue
fi
# Start mining
echo ">batch: processing pool: $pool"
make -C $BASEDIR mine pool=$pool
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment