Advertisement
Guest User

Untitled

a guest
Jul 14th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement