Currently there are two haproxy-octavia elements, haproxy-octavia and haproxy-octavia-ubuntu in the Octavia project. The have minimal changes between them, so this patch merges them into one element with a backward compatible element left for haproxy-octavia-ubuntu. Change-Id: I990802726d24e319988bfb614b3bf3fb560512b4
14 lines
263 B
Bash
Executable File
14 lines
263 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ "$DISTRO_NAME" == "ubuntu" ]; then
|
|
# Doing both here as just remove doesn't seem to work on xenial
|
|
update-rc.d haproxy disable || true
|
|
update-rc.d -f haproxy remove || true
|
|
else
|
|
chkconfig haproxy off
|
|
fi
|
|
|