Skip to content

Instantly share code, notes, and snippets.

@ruzickap
Created October 25, 2014 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruzickap/438961867c0fb3bccf6f to your computer and use it in GitHub Desktop.
Save ruzickap/438961867c0fb3bccf6f to your computer and use it in GitHub Desktop.
cz01-pgpool01 primary pgpool server installation
sed \
-e "s/^wd_hostname =.*/wd_hostname = 'cz01-pgpool01.example.com'/" \
-e "s/^heartbeat_destination0 =.*/heartbeat_destination0 = 'cz01-pgpool02.example.com'/" \
-e "s/^#other_pgpool_hostname0 =.*/other_pgpool_hostname0 = 'cz01-pgpool02.example.com'/" \
-i /etc/pgpool-II-93/pgpool.conf
service pgpool-II-93 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment