summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2015-01-08 15:22:33 -0500
committerMatt Stancliff <matt@genges.com>2015-01-09 15:19:18 -0500
commit36a3b75355bd5aea9e34889918c5b78fb79586e4 (patch)
treeda11ffc8680536ad53ef75f29663bfa626a41cd1 /redis.conf
parent5e8b7e4f356c2908bb3389e2df09473e290acae8 (diff)
downloadredis-36a3b75355bd5aea9e34889918c5b78fb79586e4.tar.gz
Supervise redis processes only if configured
Adds configuration option 'supervised [no | upstart | systemd | auto]' Also removed 'bzero' from the previous implementation because it's 2015. (We could actually statically initialize those structs, but clang throws an invalid warning when we try, so it looks bad even though it isn't bad.) Fixes #2264
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf
index b2ee853cd..38e258698 100644
--- a/redis.conf
+++ b/redis.conf
@@ -36,6 +36,17 @@
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize no
+# If you run Redis from upstart or systemd, Redis can interact with your
+# supervision tree. Options:
+# supervised no - no supervision interaction
+# supervised upstart - signal upstart by putting Redis into SIGSTOP mode
+# supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET
+# supervised auto - detect upstart or systemd method based on
+# UPSTART_JOB or NOTIFY_SOCKET environment variables
+# Note: these supervision methods only signal "process is ready."
+# They do not enable continuous liveness pings back to your supervisor.
+supervised no
+
# When running daemonized, Redis writes a pid file in /var/run/redis.pid by
# default. You can specify a custom pid file location here.
pidfile /var/run/redis.pid