Add proper health check
This commit is contained in:
7
healthcheck.sh
Normal file
7
healthcheck.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
response=$(curl -o /dev/null -s -w "%{http_code}" http://localhost:9999)
|
||||
if [ "$response" -eq 200 ]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user