Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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