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,12 +1,12 @@
#!/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
@@ -28,27 +28,27 @@ 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