Skip to content

Instantly share code, notes, and snippets.

@researcx
Created April 14, 2022 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save researcx/8b425f17b190e6cdb37cade8acc5c392 to your computer and use it in GitHub Desktop.
Save researcx/8b425f17b190e6cdb37cade8acc5c392 to your computer and use it in GitHub Desktop.
check if xmrig is running
#!/bin/bash
PROCESS=`ps -eaf | grep xmrig | grep -v grep`
if [ "$PROCESS" == '' ]
then
/home/monero/xmrig -B
else
echo "xmrig running"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment