summaryrefslogtreecommitdiff
path: root/tests/modules
diff options
context:
space:
mode:
authorEduardo Semprebon <eduardobr@gmail.com>2022-04-26 13:34:04 +0200
committerGitHub <noreply@github.com>2022-04-26 14:34:04 +0300
commit3a1d14259d5a1cec90a5afa50a49e4d9d881ab37 (patch)
tree14b7aceb14bf0f4f8185276ac4891fd2c98f3630 /tests/modules
parent156836bfe500a2dce9319fdba259d40735421a38 (diff)
downloadredis-3a1d14259d5a1cec90a5afa50a49e4d9d881ab37.tar.gz
Allow configuring signaled shutdown flags (#10594)
The SHUTDOWN command has various flags to change it's default behavior, but in some cases establishing a connection to redis is complicated and it's easier for the management software to use signals. however, so far the signals could only trigger the default shutdown behavior. Here we introduce the option to control shutdown arguments for SIGTERM and SIGINT. New config options: `shutdown-on-sigint [nosave | save] [now] [force]` `shutdown-on-sigterm [nosave | save] [now] [force]` Implementation: Support MULTI_ARG_CONFIG on createEnumConfig to support multiple enums to be applied as bit flags. Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/moduleconfigs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/moduleconfigs.c b/tests/modules/moduleconfigs.c
index a9e434a7b..af30bda34 100644
--- a/tests/modules/moduleconfigs.c
+++ b/tests/modules/moduleconfigs.c
@@ -139,4 +139,4 @@ int RedisModule_OnUnload(RedisModuleCtx *ctx) {
strval = NULL;
}
return REDISMODULE_OK;
-} \ No newline at end of file
+}