Advertisement
sourceofadmin

ubuntu rc.local for bitcoind not running

Jun 15th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. this is from:
  2. https://github.com/kyledrake/coinpunk/blob/master/docs/install-ubuntu.md
  3. they explain to put in /etc/rc.local the following:
  4. /usr/bin/sudo -u YOURSHELLUSERNAME sh -c "/usr/bin/bitcoind -daemon"
  5.  
  6. I reboot the server and bitcoind is NOT running
  7.  
  8. here is the rc.local file:
  9.  
  10.  
  11. #!/bin/sh -e
  12. #
  13. # rc.local
  14. #
  15. # This script is executed at the end of each multiuser runlevel.
  16. # Make sure that the script will "exit 0" on success or any other
  17. # value on error.
  18. #
  19. # In order to enable or disable this script just change the execution
  20. # bits.
  21. #
  22. # By default this script does nothing.
  23. /usr/bin/sudo -u root sh -c "/usr/bin/bitcoind -daemon"
  24.  
  25. exit 0
  26.  
  27.  
  28. ----------
  29.  
  30. (please note; removing sudo does not work either)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement