#!/bin/bash # noswaprun.sh MINUTES — on the helper CT: the no-swap burst (load2.py cycles). The env file is read into memory and # shredded at once (as soakrun.sh). cd /root ENVD=$(cat /root/.burstenv); shred -u /root/.burstenv echo "$(date -u +%T) BURST START $1 min" >> /root/noswap.log timeout $(( $1*60 + 300 )) python3 /root/load2.py $1 noswap <<< "$ENVD" > /root/noswap-burst.log 2>&1 echo "$(date -u +%T) BURST END rc=$?" >> /root/noswap.log