5 lines
591 B
Bash
5 lines
591 B
Bash
#!/usr/bin/env bash
|
|
# Stops a rehearsal box's miner loops, miner, worker and sampler but NOT its dn400 node: run as a FILE (an inline pkill
|
|
# carrying these words kills the ssh shell that carries them). Then MINER_ONLY=1 bash in/box-rehearsal.sh restarts the miner.
|
|
pkill -9 -f '[b]ash in/box-rehearsal.sh'; pkill -9 -f '[/]root/fleet/in/igneum-miner-v4 '; pkill -9 -f '[/]opt/igneum/pkg/bin/igneum-worker-cuda --serve .*dn400'
|
|
sleep 1; echo "left=$(pgrep -c -f '[b]ash in/box-rehearsal.sh')+$(pgrep -c -f '[/]root/fleet/in/igneum-miner-v4 ') node=$(pgrep -c -f '[/]root/fleet/in/igneumd')"
|