When running xmrig to mine xmr on low memory systems, it will sometimes get killed by Out of Memory Control. To prevent this, I wrote this script to start xmrig and adjust its oom value:
#!/bin/bash
/opt/xmrig/build/xmrig
PID=$(ps aux | grep xmrig | head -n 1 | awk '{print $2}')
echo -17 > /proc/$PID/oom_adj
Monero donations welcome:
42z1KwEVpbrYBjYuHyyEQZUqBrFpMFmU6TPL2fNrLCVV37BB2ZPbTTKeyettF2TLhiVexXUPyg7W5EzVFiw8gBak8zuL4Pv