Permalink
Browse files

Check script detects java.lang.NullPointerException

  • Loading branch information...
nxt-ext
nxt-ext committed Jan 2, 2014
1 parent be69858 commit 01737bcd04d78b8029e8a1b7cfd6f99800920501
Showing with 6 additions and 3 deletions.
  1. +2 −0 LICENSE
  2. +2 −1 README.md
  3. +2 −2 scripts-src/check.sh
View
@@ -20,3 +20,5 @@ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <https://github.com/nxt-ext/nxt-kit>
View
@@ -5,6 +5,7 @@
* deploys nxt @ any number of remote servers (VPSs)
* sets `myAddress` automatically
* hallmarks nodes
* updates them on script re-run (if needed)
* crons restart and health check
@@ -28,4 +29,4 @@
`ansible-playbook -f 10 -v path/to/repo/playbooks/deploy.yml`
Tips: [2345678935869777788](http://87.230.14.1/nxt/nxt.cgi?action=3000&acc=2345678935869777788)
Tips: [999992273311888788](http://87.230.14.1/nxt/nxt.cgi?action=3000&acc=999992273311888788)
View
@@ -1,8 +1,8 @@
#!/bin/bash
if [ -z "$(pgrep java)" ]
if [ -z "$(pgrep java)" ] || [ -z "$(wget -qO- http://localhost:7874/nxt?requestType=getState)" ]
then
# nxt is not running
echo 'ERROR: nxt is NOT running'
echo 'ERROR: nxt is NOT running correctly'
~/nxt-kit/sbin/restart.nxt.sh
echo 'RESTARTED: nxt'
else

0 comments on commit 01737bc

Please sign in to comment.