From a8e5c68d03352e082209d487df9c961c4e76ec71 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 1 Oct 2015 08:36:48 +0900 Subject: [PATCH] Better document '-l/--local-port' option. Per Github #59. --- FAILOVER.rst | 3 +++ repmgr.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/FAILOVER.rst b/FAILOVER.rst index 607d93ca..ea6fe050 100644 --- a/FAILOVER.rst +++ b/FAILOVER.rst @@ -203,6 +203,9 @@ repmgr will also ask for the superuser password on the witness database so it can reconnect when needed (the command line option --initdb-no-pwprompt will set up a password-less superuser). +By default the witness server will listen on port 5499; this value can be overridden +with the -l/--local-port option. + Start the repmgrd daemons ------------------------- diff --git a/repmgr.c b/repmgr.c index 3698a6c3..93df4dc4 100644 --- a/repmgr.c +++ b/repmgr.c @@ -58,7 +58,8 @@ #define TABLESPACE_MAP "tablespace_map" #endif -#define WITNESS_DEFAULT_PORT "5499" +#define WITNESS_DEFAULT_PORT "5499" /* If this value is ever changed, remember + * to update comments and documentation */ #define NO_ACTION 0 /* Dummy default action */ #define MASTER_REGISTER 1