Created
April 14, 2022 11:03
-
-
Save researcx/8b425f17b190e6cdb37cade8acc5c392 to your computer and use it in GitHub Desktop.
check if xmrig is running
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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