MainMsgQueueTimeoutShutdown¶
Sets the main message queue shutdown timeout at config load time.
This parameter applies to imdiag: Diagnostic instrumentation.
- Name:
MainMsgQueueTimeoutShutdown
- Scope:
module
- Type:
integer (milliseconds)
- Default:
10000
- Required?:
no
- Introduced:
8.x
Description¶
Sets globals.mainQ.iMainMsgQtoQShutdown — the time rsyslog waits for
the main message queue to drain during an orderly shutdown — at config-load
time. The testbench uses this to establish a safe default without relying on
legacy $MainMsgQueueTimeoutShutdown directives, which are not available
in YAML-only mode.
The value can be overridden per-test by setting the
RSTB_GLOBAL_QUEUE_SHUTDOWN_TIMEOUT environment variable before calling
generate_conf, or by writing a $MainMsgQueueTimeoutShutdown directive
in the test’s RainerScript configuration fragment (legacy directives apply
after module params and therefore take precedence).
Module usage¶
module(load="imdiag" mainMsgQueueTimeoutShutdown="10000")
YAML usage¶
testbench_modules:
- load: "../plugins/imdiag/.libs/imdiag"
mainmsgqueuetimeoutshutdown: "10000"
See also¶
See also imdiag: Diagnostic instrumentation.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.