mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
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:
4
debian/repmgr.repmgrd.default
vendored
4
debian/repmgr.repmgrd.default
vendored
@@ -2,6 +2,10 @@
|
|||||||
# default settings for repmgrd. This file is source by /bin/sh from
|
# default settings for repmgrd. This file is source by /bin/sh from
|
||||||
# /etc/init.d/repmgrd
|
# /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
|
# Options for repmgrd
|
||||||
REPMGRD_OPTS=""
|
REPMGRD_OPTS=""
|
||||||
|
|
||||||
|
|||||||
6
debian/repmgr.repmgrd.init
vendored
6
debian/repmgr.repmgrd.init
vendored
@@ -26,6 +26,12 @@ fi
|
|||||||
|
|
||||||
test -x $REPMGRD_BIN || exit 0
|
test -x $REPMGRD_BIN || exit 0
|
||||||
|
|
||||||
|
case "$REPMGRD_ENABLE" in
|
||||||
|
[Nn]*)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
start-stop-daemon --start --quiet --make-pidfile --pidfile $REPMGRD_PIDFILE --exec $REPMGRD_BIN $REPMGRD_OPTS
|
start-stop-daemon --start --quiet --make-pidfile --pidfile $REPMGRD_PIDFILE --exec $REPMGRD_BIN $REPMGRD_OPTS
|
||||||
|
|||||||
Reference in New Issue
Block a user