Skip to content

Instantly share code, notes, and snippets.

@thanos
Created October 19, 2012 15:03
Show Gist options
  • Select an option

  • Save thanos/3918697 to your computer and use it in GitHub Desktop.

Select an option

Save thanos/3918697 to your computer and use it in GitHub Desktop.
installs haproxy on ubuntu 11.0
sudo apt-get update
sudo apt-get install haproxy
sudo sed 's/ENABLED\s*=\s*0/ENABLED=1/' < /etc/default/haproxy > /tmp/haproxy
sudo cp /tmp/haproxy /etc/default/haproxy
sudo update-rc.d -f haproxy remove
sudo update-rc.d -f networking remove
sudo update-rc.d haproxy start 37 2 3 4 5 . stop 20 0 1 6 .
sudo update-rc.d networking start 34 2 3 4 5 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment