Title: script to start bitcoind Post by: crunck on December 29, 2015, 11:35:43 PM 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 Title: Re: script to start bitcoind Post by: cr1776 on December 30, 2015, 01:24:10 AM 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? ;-) Title: Re: script to start bitcoind Post by: crunck on December 30, 2015, 01:42:56 AM 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 Title: Re: script to start bitcoind Post by: Polyatomic on December 30, 2015, 02:10:28 AM 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. I wonder why bitcoind is doing that, It should just keep running. There may be something in the debug.log thatCrunck 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! Title: Re: script to start bitcoind Post by: cr1776 on December 30, 2015, 03:20:32 AM 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. Title: Re: script to start bitcoind Post by: crunck on December 30, 2015, 01:46:39 PM 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 Title: Re: script to start bitcoind Post by: cr1776 on December 30, 2015, 02:08:07 PM 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. |