Bitcoin Forum
November 21, 2017, 07:59:27 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: script to start bitcoind  (Read 776 times)
crunck
Legendary
*
Offline Offline

Activity: 812



View Profile
December 29, 2015, 11:35:43 PM
 #1

I have my bitcoind on a dedicated server but every now and then I log into the server and find its not running, so i then have to restart it and wait for it to sync from where it stopped.

Is there a script I can add to my server that would automatically start bitcoind should it stop ?

Thanks guys and girls

Crunck

Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511294367
Hero Member
*
Offline Offline

Posts: 1511294367

View Profile Personal Message (Offline)

Ignore
1511294367
Reply with quote  #2

1511294367
Report to moderator
1511294367
Hero Member
*
Offline Offline

Posts: 1511294367

View Profile Personal Message (Offline)

Ignore
1511294367
Reply with quote  #2

1511294367
Report to moderator
1511294367
Hero Member
*
Offline Offline

Posts: 1511294367

View Profile Personal Message (Offline)

Ignore
1511294367
Reply with quote  #2

1511294367
Report to moderator
cr1776
Legendary
*
Offline Offline

Activity: 1708


View Profile
December 30, 2015, 01:24:10 AM
 #2

I have my bitcoind on a dedicated server but every now and then I log into the server and find its not running, so i then have to restart it and wait for it to sync from where it stopped.

Is there a script I can add to my server that would automatically start bitcoind should it stop ?

Thanks guys and girls

Crunck

What OS?  Version?  ;-)

crunck
Legendary
*
Offline Offline

Activity: 812



View Profile
December 30, 2015, 01:42:56 AM
 #3

I have my bitcoind on a dedicated server but every now and then I log into the server and find its not running, so i then have to restart it and wait for it to sync from where it stopped.

Is there a script I can add to my server that would automatically start bitcoind should it stop ?

Thanks guys and girls

Crunck

What OS?  Version?  ;-)



Its on an ovh box running ubuntu but without the gui

Thanks

Polyatomic
Sr. Member
****
Offline Offline

Activity: 241


View Profile
December 30, 2015, 02:10:28 AM
 #4

but every now and then I log into the server and find its not running, so i then have to restart it and wait for it to sync from where it stopped.

Crunck
I wonder why bitcoind is doing that, It should just keep running. There may be something in the debug.log that
may explain  why bitcoind is crapping out.

Have a look in this directory https://github.com/bitcoin/bitcoin/tree/master/contrib/init. If your rig is using systemd
there is a unit there, so you can start bitcoind through systemctl. Also a couple other scripts for openrc and sysvinit.
check it out man!
cr1776
Legendary
*
Offline Offline

Activity: 1708


View Profile
December 30, 2015, 03:20:32 AM
 #5

I have my bitcoind on a dedicated server but every now and then I log into the server and find its not running, so i then have to restart it and wait for it to sync from where it stopped.

Is there a script I can add to my server that would automatically start bitcoind should it stop ?

Thanks guys and girls

Crunck

What OS?  Version?  ;-)



Its on an ovh box running ubuntu but without the gui

Thanks

You could be hitting memory issues during the so-called stress tests.  Even 4GB can be too little. You can adjust various parameters to require more fees to limit this, btw.

As above, systemd is an option, there are others such as monit. These are more generic to monitor a particular process and restart it if it fails. 
crunck
Legendary
*
Offline Offline

Activity: 812



View Profile
December 30, 2015, 01:46:39 PM
 #6

I should have pointed it im sorry that there is also a few altcoins on the same server, its odd lets say I have 5 coins on the server 3 will go off and the other two will keep running, at a guess I think its the server.

The big issue is that I may not visit the server for days or even weeks and then when i do i have to restart bitcoind and wait an eternity for i to sync back up, so I wondered if there was something tha I could install that would detect it was off and restarted it ?

Im prob asking for too much here but thought I would ask

Many thanks for the replies guys its appreciated

Crunck

cr1776
Legendary
*
Offline Offline

Activity: 1708


View Profile
December 30, 2015, 02:08:07 PM
 #7

You might take a look at these to keep an eye on them - monit works nicely.

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-monit
http://stackoverflow.com/questions/28187786/monit-daemon-error-connecting-to-the-monit-daemon


upstart might be an option too, but I prefer monit.

It could very well be memory issues.  Turning swap on (if it isn't already) could help with stability at the expense of performance.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!