Skip to content

Commit

Permalink
fix(redis-sentinel_initd.jinja): fix salt-lint errors
Browse files Browse the repository at this point in the history
```bash
Examining redis/files/redis-sentinel_initd.jinja of type state
[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:26

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:29

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:31

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:36

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:38

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:40

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:48

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:53

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:72

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:77

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:88

[201] Trailing whitespace
redis/files/redis-sentinel_initd.jinja:94
```
  • Loading branch information
myii committed Oct 9, 2019
1 parent 92ed1f8 commit af83bca
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions redis/files/redis-sentinel_initd.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,34 @@ DAEMON=/usr/bin/{{ redis_settings.sentinel_service }}
DAEMON_ARGS={{ redis_settings.sentinel_cfg }}
NAME=redis-sentinel
DESC=redis-sentinel

RUNDIR=/var/run/redis
PIDFILE=${RUNDIR}/redis-sentinel.pid

test -x ${DAEMON} || exit 0

if [ -r /etc/default/${NAME} ]
then
. /etc/default/${NAME}
fi

. /lib/lsb/init-functions

set -e

case "${1}" in
start)
echo -n "Starting ${DESC}: "
mkdir -p ${RUNDIR}
touch ${PIDFILE}
chown redis:redis ${RUNDIR} ${PIDFILE}
chmod 755 ${RUNDIR}

if [ -n "${ULIMIT}" ]
then
ulimit -n ${ULIMIT}
fi

if start-stop-daemon --start --quiet --umask 007 --pidfile ${PIDFILE} --chuid redis:redis --exec ${DAEMON} -- ${DAEMON_ARGS}
then
echo "${NAME}."
Expand All @@ -69,12 +69,12 @@ case "${1}" in
rm -f ${PIDFILE}
sleep 1
;;

restart|force-reload)
${0} stop
${0} start
;;

status)
echo -n "${DESC} is "
if start-stop-daemon --stop --quiet --signal 0 --name ${NAME} --pidfile ${PIDFILE}
Expand All @@ -85,11 +85,11 @@ case "${1}" in
exit 1
fi
;;

*)
echo "Usage: /etc/init.d/${NAME} {start|stop|restart|force-reload|status}" >&2
exit 1
;;
esac

exit 0

0 comments on commit af83bca

Please sign in to comment.