fix: don't use Windows newlines

This commit is contained in:
Christian Kruse
2014-03-04 12:59:23 +01:00
parent 150ccc0662
commit 50b9022a41
2 changed files with 72 additions and 72 deletions

View File

@@ -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"

View File

@@ -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