mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-28 01:16:29 +00:00
fix: don't use Windows newlines
This commit is contained in:
36
debian/repmgr.repmgrd.default
vendored
36
debian/repmgr.repmgrd.default
vendored
@@ -1,18 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# 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
|
# disable repmgrd by default so it won't get started upon installation
|
||||||
# valid values: yes/no
|
# valid values: yes/no
|
||||||
REPMGRD_ENABLED=no
|
REPMGRD_ENABLED=no
|
||||||
|
|
||||||
# Options for repmgrd
|
# Options for repmgrd
|
||||||
REPMGRD_OPTS=""
|
REPMGRD_OPTS=""
|
||||||
|
|
||||||
# repmgrd binary
|
# repmgrd binary
|
||||||
REPMGR_BIN="/usr/bin/repmgr"
|
REPMGR_BIN="/usr/bin/repmgr"
|
||||||
|
|
||||||
# pid file
|
# pid file
|
||||||
REPMGR_PIDFILE="/var/run/repmgrd.pid"
|
REPMGR_PIDFILE="/var/run/repmgrd.pid"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
108
debian/repmgr.repmgrd.init
vendored
108
debian/repmgr.repmgrd.init
vendored
@@ -1,54 +1,54 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: repmgrd
|
# Provides: repmgrd
|
||||||
# Required-Start: $local_fs $remote_fs $network $syslog $postgresql
|
# Required-Start: $local_fs $remote_fs $network $syslog $postgresql
|
||||||
# Required-Stop: $local_fs $remote_fs $network $syslog $postgresql
|
# Required-Stop: $local_fs $remote_fs $network $syslog $postgresql
|
||||||
# Should-Start: $syslog $postgresql
|
# Should-Start: $syslog $postgresql
|
||||||
# Should-Start: $syslog $postgresql
|
# Should-Start: $syslog $postgresql
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
# Short-Description: Start/stop repmgrd
|
# Short-Description: Start/stop repmgrd
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if test -f /etc/default/repmgrd; then
|
if test -f /etc/default/repmgrd; then
|
||||||
. /etc/default/repmgrd
|
. /etc/default/repmgrd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REPMGRD_BIN" ]; then
|
if [ -z "$REPMGRD_BIN" ]; then
|
||||||
REPMGRD_BIN="/usr/bin/repmgrd"
|
REPMGRD_BIN="/usr/bin/repmgrd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REPMGRD_PIDFILE" ]; then
|
if [ -z "$REPMGRD_PIDFILE" ]; then
|
||||||
REPMGRD_PIDFILE="/var/run/repmgrd.pid"
|
REPMGRD_PIDFILE="/var/run/repmgrd.pid"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test -x $REPMGRD_BIN || exit 0
|
test -x $REPMGRD_BIN || exit 0
|
||||||
|
|
||||||
case "$REPMGRD_ENABLE" in
|
case "$REPMGRD_ENABLE" in
|
||||||
[Nn]*)
|
[Nn]*)
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
start-stop-daemon --stop --oknodo --quiet --pidfile $REPMGRD_PIDFILE
|
start-stop-daemon --stop --oknodo --quiet --pidfile $REPMGRD_PIDFILE
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart)
|
restart)
|
||||||
$0 stop && $0 start || exit 1
|
$0 stop && $0 start || exit 1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop|restart}"
|
echo "Usage: $0 {start|stop|restart}"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user