Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #nohup sh xmrig.sh > /dev/null 2>&1 &
- port=8080
- host="0.0.0.0"
- check_port()
- {
- if ! nc ${host} ${port} < /dev/null
- then
- screen ./xmrig-proxy > /dev/null 2>&1 &
- fi
- }
- while true
- do
- check_port
- sleep 10
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement