Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Bug 1012812 - Report error if configuration files are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhonce committed Sep 27, 2013
1 parent 5fa657e commit 50d5424
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cartridges/openshift-origin-cartridge-haproxy/bin/control
Expand Up @@ -177,6 +177,13 @@ function deploy() {
# main():
#

for f in ${OPENSHIFT_HAPROXY_DIR}/conf/{gear-registry.db,gear-registry.db.lock,haproxy.cfg}; do
if ! [ -f $f ]; then
client_error "HAProxy required configuration file \"$(basename $f)\" not found."
exit 129
fi
done

# And then on the haproxy and haproxy_ctld.
case "$1" in
start) start ;;
Expand Down

0 comments on commit 50d5424

Please sign in to comment.