summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redis.conf11
1 files changed, 9 insertions, 2 deletions
diff --git a/redis.conf b/redis.conf
index d0684e86a..127912c31 100644
--- a/redis.conf
+++ b/redis.conf
@@ -113,8 +113,15 @@ daemonize no
# 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.
+# If a pid file is specified, Redis writes it where specified at startup
+# and removes it at exit.
+#
+# When the server runs non daemonized, no pid file is created if none is
+# specified in the configuration. When the server is daemonized, the pid file
+# is used even if not specified, defaulting to "/var/run/redis.pid".
+#
+# Creating a pid file is best effort: if Redis is not able to create it
+# nothing bad happens, the server will start and run normally.
pidfile /var/run/redis.pid
# Specify the server verbosity level.