Commit Graph
10 Commits
Author SHA1 Message Date
Axel Uhl bec2969357 updated java/target/status script to use /gwt/status 2019-02-09 16:48:11 +01:00
Axel Uhl 17093b4dc6 availability checks now return non-2XX response code if unavailable; status script adjusted;
the java/target/status script now uses the consolidated
/sailingserver/api/v1/status end point and returns a 200 response if and
only if the RacingEventService has loaded all races it needs to load and
replication reports availability. In all other cases, non-2XX codes
are reported, such as 503 (not available) or 404 (not found)

Change-Id: I55ca3c98de993be0e6fff8e02837d17dd54431f6
2019-02-04 13:27:42 +01:00
Alessandro Stoltenberg dc5b5dd57a Added MONGODB_URI to status script 2019-01-23 15:30:17 +01:00
Axel Uhl f8a2d2fb0d java/target/status now delivers an exit code of 0 if the server is available, and 1 if not;
it considers the outputs of /index.html, scanning for a 2XX HTTP
response code, checks the availability of the RacingEventService using
the /sailingserver/api/v1/status end point and checks the replication
stack for availability using /replication/replication?action=STATUS

Change-Id: Ic277aa5a248b5bc31a7042f46b388e734655c980
2019-01-18 18:24:48 +01:00
Simon Pamies 2033002a3d Added mongodb name to status 2014-09-25 09:41:49 +02:00
Axel Uhl 8b4f4fa7e4 replaced #!/bin/sh by #!/bin/bash to ensure compatibility on Debian-like Linux systems such as Ubuntu 2014-07-16 11:31:14 +02:00
Simon Pamies 543f162a86 Fixed support for mac os x systems 2013-12-12 09:50:03 +01:00
Simon Pamies 3194028837 Refactored env.sh logic: Removed all magic from start, stop and status scripts moved it into prepareInstanceOnAmazon.sh that rewrites env.sh 2013-12-10 14:48:59 +01:00
Simon Pamies 73cffe6e8e Made status script aware of overwritten environment 2013-11-24 13:27:07 +01:00
Simon Pamies f0dc9d5292 Added status script to check if server is running (now with script) 2013-06-18 13:37:48 +02:00