peerchemist / Peerbox

DEPRECATED
GNU General Public License v3.0
19 stars 22 forks source link

WARNING: ppcoind is not running! - Should display "ppcoind is not ready yet" when the process is running but not ready. #7

Closed Thireus closed 9 years ago

Thireus commented 9 years ago

When the ppcoind process is running but peerbox-info is not ready to interface with it via RPC a different warning message than "ppcoind is not running" should be displayed. So that the end user can understand that he has to wait for ppcoind to be ready.

[root@peerbox ~]# ps aux | grep ppcoind | grep -v grep
ppcoind    311 33.7 18.7 199888 91904 ?        SLsl 11:27   1:46 /usr/bin/ppcoind -daemon -conf=/etc/peercoin/peercoin.conf -pid=/run/ppcoind/ppcoind.pid -datadir=/var/lib/ppcoind -checkblocks=1000
[root@peerbox ~]# peerbox-info 
Peerbox:
{
    "peerbox version": "v0.23", 
    "ppcoind": "ppcoind inactive", 
    "raspi_board_rev": "0x10", 
    "serial": "000000003f2980c1", 
    "uptime": "0:05:41.970000"
}
WARNING: ppcoind is not running!

Should display something like:

WARNING: ppcoind is running but not ready yet.
peerchemist commented 9 years ago

Fixed: https://github.com/peerchemist/Peerbox/commit/ab869aec831df6bd7215954ffa0880e1ef6ce3e2