mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 14:56:41 +00:00
Better debug information upon server start
This commit is contained in:
1 parent
b8fa7a907f
commit
ece3e60d97
1 file changed
+3
-1
+3
-1
@@ -84,10 +84,12 @@ if [[ $PARAM == "" ]]; then
|
||||
sleep 10
|
||||
|
||||
SERVER_ACTIVE=`netstat -tlnp 2>/dev/null | grep ":$SERVER_PORT"`
|
||||
NETSTAT_INFO=`netstat -ntpl 2>/dev/null`
|
||||
PROCESS_INFO=`ps auxwww`
|
||||
if [[ $SERVER_PORT == "" ]] || [[ $SERVER_ACTIVE == "" ]]; then
|
||||
echo "Something went wrong with startup. Please check the logs..."
|
||||
if [[ $SERVER_STARTUP_NOTIFY != "" ]]; then
|
||||
echo "Startup of java server failed - check the logs" | `which mail` -r simon.marcel.pamies@sap.com -s "Server $INSTANCE_ID startup failed!" $SERVER_STARTUP_NOTIFY
|
||||
echo "Startup of java server failed - check the logs ($SERVER_ACTIVE)\n\n$NETSTAT\n$PROCESS_INFO" | `which mail` -r simon.marcel.pamies@sap.com -s "Server $INSTANCE_ID startup failed!" $SERVER_STARTUP_NOTIFY
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user