summaryrefslogtreecommitdiff
path: root/databases/postgresql-repmgr/files
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2017-03-05 10:40:45 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2017-03-05 10:40:45 +0000
commite3788dbf2ff29ce8c88f9092efcf8ca4cfcc9a29 (patch)
tree945bea9d84f6f341b9c2020e8a5a958808e9b869 /databases/postgresql-repmgr/files
parentdatabases/postgresql-odbc: Update version 09.05.0400=>09.06.0100 (diff)
databases/postgresql-repmgr: Update version 3.1.5=>3.3
- Daemon would better run as pgsql user, and for safety by default in monitor only mode [1] PR: 212490 [1] Submitted by: marck [1]
Notes
Notes: svn path=/head/; revision=435467
Diffstat (limited to 'databases/postgresql-repmgr/files')
-rw-r--r--databases/postgresql-repmgr/files/repmgrd.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/databases/postgresql-repmgr/files/repmgrd.in b/databases/postgresql-repmgr/files/repmgrd.in
index 33f7b336890c..50d802878289 100644
--- a/databases/postgresql-repmgr/files/repmgrd.in
+++ b/databases/postgresql-repmgr/files/repmgrd.in
@@ -22,12 +22,13 @@ rcvar=repmgrd_enable
load_rc_config $name
: ${repmgrd_enable:="NO"}
+: ${repmgrd_user:="pgsql"}
: ${repmgrd_config="%%PREFIX%%/etc/repmgr.conf"}
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
-command_args="-p $pidfile -f $repmgrd_config"
+command_args="-m -d -p $pidfile -f $repmgrd_config"
run_rc_command "$1"