diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2020-11-17 12:52:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 12:52:49 +0200 |
commit | d638b058341c0cc09871848848ed0f59a2a23fc8 (patch) | |
tree | 568e80350cdae4edb100aaede3a6565b43b8678f /redis.conf | |
parent | ea7cf737a1ff65524994ce6731eb9320891aa946 (diff) | |
download | redis-d638b058341c0cc09871848848ed0f59a2a23fc8.tar.gz |
Improve and clean up supervised process support. (#8036)
* Configuration file default should now be "auto".
* Expose "process_supervised" as an info field.
* Log messages improvements (clarify required systemd config, report
auto-detected supervision mode, etc.)
* Set server.supervised properly, so it can take precedence of
"daemonize" configuration.
* Produce clear warning if systemd is detected/requested but executable
is compiled without support for it, instead of silently ignoring.
* Handle systemd notification error on startup, and turn off supervised
mode if it failed.
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/redis.conf b/redis.conf index d28c17b64..dcb5f6241 100644 --- a/redis.conf +++ b/redis.conf @@ -228,6 +228,7 @@ tcp-keepalive 300 # By default Redis does not run as a daemon. Use 'yes' if you need it. # Note that Redis will write a pid file in /var/run/redis.pid when daemonized. +# When Redis is supervised by upstart or systemd, this parameter has no impact. daemonize no # If you run Redis from upstart or systemd, Redis can interact with your @@ -236,11 +237,17 @@ daemonize no # supervised upstart - signal upstart by putting Redis into SIGSTOP mode # requires "expect stop" in your upstart job config # supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET +# on startup, and updating Redis status on a regular +# basis. # 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 pings back to your supervisor. -supervised no +# +# The default is "no". To run under upstart/systemd, you can simply uncomment +# the line below: +# +# supervised auto # If a pid file is specified, Redis writes it where specified at startup # and removes it at exit. |