Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #run-bitcoind.sh
- #make sure a process is always running.
- #export DISPLAY=:0 #needed if you are running a simple gui app.
- process=bitcoind
- makerun="/usr/bin/bitcoind"
- if ps -e | grep $process > /dev/null
- then
- echo "Running"
- exit
- else
- echo "Not Running"
- $makerun
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement