add option to avoid repmgrd started upon installation

Now repmgr.repmgrd.default has another option: REPMGRD_ENABLED. Valid
values are either yes or no.
This commit is contained in:
Christian Kruse
2014-03-04 12:46:05 +01:00
parent 0ff14a2aa1
commit 150ccc0662
2 changed files with 10 additions and 0 deletions

View File

@@ -2,6 +2,10 @@
# default settings for repmgrd. This file is source by /bin/sh from
# /etc/init.d/repmgrd
# disable repmgrd by default so it won't get started upon installation
# valid values: yes/no
REPMGRD_ENABLED=no
# Options for repmgrd
REPMGRD_OPTS=""

View File

@@ -26,6 +26,12 @@ fi
test -x $REPMGRD_BIN || exit 0
case "$REPMGRD_ENABLE" in
[Nn]*)
exit 0
;;
esac
case "$1" in
start)
start-stop-daemon --start --quiet --make-pidfile --pidfile $REPMGRD_PIDFILE --exec $REPMGRD_BIN $REPMGRD_OPTS