Skip to content

Instantly share code, notes, and snippets.

@nielsonsantana
Forked from ehazlett/redis.conf
Last active February 15, 2017 21:06
Show Gist options
  • Save nielsonsantana/5b92de6f3f5c4d82a1d6 to your computer and use it in GitHub Desktop.
Save nielsonsantana/5b92de6f3f5c4d82a1d6 to your computer and use it in GitHub Desktop.
Redis supervisor config
[program:redis]
command=/usr/bin/redis-server /etc/redis/redis.conf
user=root
autostart=true
autorestart=true
stdout_logfile=/var/log/redis/stdout.log
stderr_logfile=/var/log/redis/stderr.log
stopsignal=QUIT
@nielsonsantana
Copy link
Author

This script only will restart redis if daemonize no in /etc/redis/redis.conf
In case of use a custom folder to store data, use this:

command=/usr/local/bin/redis-server /storage/redis_data/redis.conf
directory=/storage/redis_data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment