Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #run-bitcoin.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"
- ps cax | grep $process > /dev/null
- if [ $? -eq 0 ]; then
- #echo "$process is running."
- exit
- else
- printf "$process is not running.\n"
- $makerun
- printf "\nHowever, I have started $process again for you.\n"
- printf "~ Your faithful servant, Overseer"
- exit
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement