summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2021-01-28 18:17:39 +0200
committerGitHub <noreply@github.com>2021-01-28 18:17:39 +0200
commit4bb5ccbefbde8dffe4597de3be9e4b6730857177 (patch)
treee0062e8a631130c9186afcf4bef0598341b04b3b /redis.conf
parent01cbf17ba2c0cd8ef7cbb232c0173deaf346788f (diff)
downloadredis-4bb5ccbefbde8dffe4597de3be9e4b6730857177.tar.gz
Add proc-title-template option. (#8397)
Make it possible to customize the process title, i.e. include custom strings, immutable configuration like port, tls-port, unix socket name, etc.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf
index 370542344..465d56fc0 100644
--- a/redis.conf
+++ b/redis.conf
@@ -330,6 +330,23 @@ always-show-logo no
# the process name as executed by setting the following to no.
set-proc-title yes
+# When changing the process title, Redis uses the following template to construct
+# the modified title.
+#
+# Template variables are specified in curly brackets. The following variables are
+# supported:
+#
+# {title} Name of process as executed if parent, or type of child process.
+# {listen-addr} Bind address or '*' followed by TCP or TLS port listening on, or
+# Unix socket if only that's available.
+# {server-mode} Special mode, i.e. "[sentinel]" or "[cluster]".
+# {port} TCP port listening on, or 0.
+# {tls-port} TLS port listening on, or 0.
+# {unixsocket} Unix domain socket listening on, or "".
+# {config-file} Name of configuration file used.
+#
+proc-title-template "{title} {listen-addr} {server-mode}"
+
################################ SNAPSHOTTING ################################
# Save the DB to disk.