forum/docker/php/docker-healthcheck.sh

13 lines
166 B
Bash
Raw Normal View History

2019-12-03 21:00:08 +01:00
#!/bin/sh
set -e
export SCRIPT_NAME=/ping
export SCRIPT_FILENAME=/ping
export REQUEST_METHOD=GET
if cgi-fcgi -bind -connect 127.0.0.1:9000; then
exit 0
fi
exit 1