diff --git a/README.rst b/README.rst index b075a284..12e74764 100644 --- a/README.rst +++ b/README.rst @@ -545,7 +545,7 @@ You could now register the standby by typing on "node2":: However, you can instead start repmgrd:: - repmgrd -f /var/lib/pgsql/repmgr/repmgr.conf --verbose > /var/lib/pgsql/repmgr/repmgr.log 2>&1 + repmgrd -f /var/lib/pgsql/repmgr/repmgr.conf --daemonize --verbose > /var/lib/pgsql/repmgr/repmgr.log 2>&1 Which will automatically register your standby system. And eventually you need repmgrd running anyway, to save lag monitoring information. @@ -1015,6 +1015,8 @@ The output from this program looks like this:: --verbose output verbose activity information --monitoring-history track advance or lag of the replication in every standby in repl_monitor -f, --config-file=PATH path to the configuration file + -d, --daemonize detach process from foregroun + -p, --pid-file=PATH write a PID file repmgrd monitors a cluster of servers. diff --git a/autofailover_quick_setup.rst b/autofailover_quick_setup.rst index e9aeb6fe..1826b521 100644 --- a/autofailover_quick_setup.rst +++ b/autofailover_quick_setup.rst @@ -202,7 +202,7 @@ Start the repmgrd daemons Log in node2 and witness. su - postgres - repmgrd -f /etc/repmgr/repmgr.conf > /var/log/postgresql/repmgr.log 2>&1 + repmgrd -f /etc/repmgr/repmgr.conf --daemonize -> /var/log/postgresql/repmgr.log 2>&1 **Note:** The Master does not need a repmgrd daemon.