logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

redis-sentinel.initd-r1 (654B)


  1. #!/sbin/openrc-run
  2. # Copyright 1999-2017 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. : ${REDIS_SENTINEL_DIR:=/tmp}
  5. : ${REDIS_SENTINEL_CONF:=/etc/redis/sentinel.conf}
  6. : ${REDIS_SENTINEL_USER:=redis}
  7. : ${REDIS_SENTINEL_GROUP:=redis}
  8. : ${REDIS_SENTINEL_TIMEOUT:=30}
  9. command="/usr/sbin/redis-sentinel"
  10. command_args="${REDIS_SENTINEL_CONF}"
  11. command_background="true"
  12. command_user="${REDIS_SENTINEL_USER}:${REDIS_SENTINEL_GROUP}"
  13. pidfile="/run/${RC_SVCNAME}.pid"
  14. retry="${REDIS_SENTINEL_TIMEOUT}"
  15. start_stop_daemon_args="--chdir \"${REDIS_SENTINEL_DIR}\""
  16. depend() {
  17. use localmount logger
  18. after keepalived redis
  19. }