Skip to content

Commit

Permalink
Check script detects java.lang.NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
bbc-admin committed Jan 2, 2014
1 parent be69858 commit 01737bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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>
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
4 changes: 2 additions & 2 deletions scripts-src/check.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 01737bc

Please sign in to comment.