Author

Topic: Making bitcoind run in the background? (Read 2653 times)

kjj
legendary
Activity: 1302
Merit: 1026
December 09, 2013, 10:41:21 PM
#9
just start it with -daemon and it will continue running even if you log out of your ssh session

This is the correct answer.

If you are having problems with it crashing, consider getting a better box.  Smiley  Or a cron job that checks to see if it is running and restarts it as necessary.
full member
Activity: 235
Merit: 100
December 09, 2013, 12:32:02 PM
#8
But how can it be monitor, it is running in background and after some time it stops and shutsdown.... service is down.

And have to manually restart it.
newbie
Activity: 59
Merit: 0
July 03, 2011, 10:44:43 AM
#7
just start it with -daemon and it will continue running even if you log out of your ssh session
newbie
Activity: 54
Merit: 0
July 03, 2011, 08:27:01 AM
#6
uh, on linux:

&

.. runs it in the background.
member
Activity: 70
Merit: 10
July 02, 2011, 09:31:12 PM
#5
If you want to start it manually via ssh, press ctrl+z to suspend the process, then type bg to resume it in the background. Finally disown to detach the background process from the shell, then you can safely disconnect your ssh session.

But yeah, running it on startup via cron is the best way. Run crontab -e as the user you want to run bitcoind as and add an @reboot line. See man cron for more info.

The startup script seemed to work well. Works flawlessly when shutting down and restarting.
legendary
Activity: 1218
Merit: 1000
July 02, 2011, 09:00:47 PM
#4
Actually you can use monit to start and monitor it. It already bundles with a startup script for monit and 1 minute after it fires up bitcoind
sr. member
Activity: 321
Merit: 250
Firstbits: 1gyzhw
July 02, 2011, 08:55:39 PM
#3
If you want to start it manually via ssh, press ctrl+z to suspend the process, then type bg to resume it in the background. Finally disown to detach the background process from the shell, then you can safely disconnect your ssh session.

But yeah, running it on startup via cron is the best way. Run crontab -e as the user you want to run bitcoind as and add an @reboot line. See man cron for more info.
member
Activity: 96
Merit: 10
July 02, 2011, 08:03:43 PM
#2
Start up script is the best way... especially if you are looking for it to run on boot in case the machine goes down..
member
Activity: 70
Merit: 10
July 02, 2011, 08:01:55 PM
#1
Hey guys, what would be the best way to make bitcoind run on startup and run in the background? Currently, I'm running it through a ssh window and whenever I close the ssh client, the daemon goes down.

I was thinking about setting up a screen for it, is this a good idea? I did see a start-up script that I could use.
Jump to: