• Eduardo Semprebon's avatar
    Allow configuring signaled shutdown flags (#10594) · 3a1d1425
    Eduardo Semprebon authored
    
    
    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: default avatarOran Agra <oran@redislabs.com>
    3a1d1425
server.h 166 KB