logo

overlay

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

redis.initd-6 (701B)


  1. #!/sbin/openrc-run
  2. # Copyright 1999-2017 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. : ${REDIS_DIR:=/var/lib/redis}
  5. : ${REDIS_CONF:=/etc/redis/redis.conf}
  6. : ${REDIS_OPTS:="${REDIS_CONF}"}
  7. : ${REDIS_USER:=redis}
  8. : ${REDIS_GROUP:=redis}
  9. : ${REDIS_TIMEOUT:=30}
  10. # https://bugs.gentoo.org/631002#c10
  11. # Force '--daemonize no' to override the config file
  12. command="/usr/sbin/redis-server"
  13. command_args="${REDIS_OPTS} --daemonize no"
  14. command_background="true"
  15. command_user="${REDIS_USER}:${REDIS_GROUP}"
  16. pidfile="/run/${RC_SVCNAME}.pid"
  17. retry="${REDIS_TIMEOUT}"
  18. start_stop_daemon_args="--chdir \"${REDIS_DIR}\""
  19. depend() {
  20. use localmount logger
  21. after keepalived
  22. }