Files
felhom.eu/documentation/audits/night-2026-10-21/tools/noswaprun.sh
T

9 lines
451 B
Bash

#!/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