SHOW:
|
|
- or go back to the newest paste.
1 | #!/bin/bash | |
2 | #run-bitcoind.sh | |
3 | #make sure a process is always running. | |
4 | ||
5 | #export DISPLAY=:0 #needed if you are running a simple gui app. | |
6 | process=bitcoind | |
7 | makerun="/usr/bin/bitcoind" | |
8 | ||
9 | if ps -e | grep $process > /dev/null | |
10 | then | |
11 | echo "Running" | |
12 | exit | |
13 | else | |
14 | echo "Not Running" | |
15 | $makerun | |
16 | fi |