mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 21:00:42 +01:00
core: detect if runing in container, enable ctl-c if so
This also sets the basis for other container-specific config changes and other optimizations. closes https://github.com/rsyslog/rsyslog/issues/2371
This commit is contained in:
parent
33134a30d9
commit
f557211f94
@ -1947,6 +1947,13 @@ main(int argc, char **argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
if((int) getpid() == 1) {
|
||||
fprintf(stderr, "rsyslogd %s: running as pid 1, enabling "
|
||||
"container-specific defaults, press ctl-c to "
|
||||
"terminate rsyslog\n", VERSION);
|
||||
glblPermitCtlC = 1;
|
||||
}
|
||||
|
||||
/* disable case-sensitive comparisons in variable subsystem: */
|
||||
fjson_global_do_case_sensitive_comparison(0);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user