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

Commit

Permalink
sni-proxy: have restart re-create conf
Browse files Browse the repository at this point in the history
"service openshift-sni-proxy start" caused haproxy conf to be re-created
according to the plugin conf file, but not a restart. This change causes
oo-rebuild-haproxy-sni-proxy to be run either way.

Bug 1161135 - openshift-sni-proxy restart command needs call
'oo-rebuild-haproxy-sni-proxy' function
https://bugzilla.redhat.com/show_bug.cgi?id=1161135
  • Loading branch information
sosiouxme committed Nov 6, 2014
1 parent f44b778 commit 7599f7c
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ check() {
}

start() {
# Fix the IP address and config params if they changed.
oo-rebuild-haproxy-sni-proxy || :
$exec -c -q -f $cfgfile
if [ $? -ne 0 ]; then
echo "Errors in configuration file, check with $prog check."
Expand Down Expand Up @@ -89,12 +91,7 @@ fdr_status() {
}

case "$1" in
start)
# Fix the IP address and config params if they changed.
oo-rebuild-haproxy-sni-proxy || :
start
;;
stop|restart|reload)
start|stop|restart|reload)
$1
;;
force-reload)
Expand Down

0 comments on commit 7599f7c

Please sign in to comment.