## Redis server initscript configuration
##

## Default config file location
CONFIG_FILE=/etc/redis/redis.conf

## Method to stop Redis server on 'service redis stop'
## KILL - send SIGKILL and terminate redis-server immediately.
##        Unsaved items will be lost, on restart redis-server will restore
##        database from last saved .rdb or/and AOF depending of
##        configuration.
##
## TERM - send SIGTERM and wait WAIT_TIMEOUT seconds for redis-server to quit.
##        After receiving TERM signal redis-server saves its databases
##        on disk, closes AOF and quits. That can take a lot of time
##        on a huge databases.
##        If redis-server stil running after WAIT_TIMEOUT, killing it.
##
## SHUTDOWN - call 'redis-cli shutdown' and wait.
##        Almost the same as TERM but doesn't kill redis-server on
##        errors or timeouts.
##
STOP_METHOD="TERM"

## Timeout to wait redis-server to shutdown for TERM method
#WAIT_TIMEOUT=300

## Redis 'shutdown' command. Redis supports commands renaming as a security
## measure, 'shutdown' is a good candidate for it.
#SHUTDOWN_CMD='shutdown'

## When using non-default port, set connection parameters
## for redis-cli utility
#CLI_ARGS='-p 6379'

## Run redis-server as non-privileged user
REDIS_USER=_redis
REDIS_GROUP=_redis
# server cmdline options
#OPTIONS=""
