summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Heinrich <theinric@redhat.com>2013-11-06 17:57:49 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-15 15:08:21 +0100
commitf0124d12639f7a4cffee70ca2bd8cee7984b865c (patch)
tree64e6c83e198283d272ba44566ee6c53ad1571675
parent5a8ad4c9c2eaec406d9cd78d621c31d6dee8c08f (diff)
downloadrsyslog-f0124d12639f7a4cffee70ca2bd8cee7984b865c.tar.gz
rsyslog-f0124d12639f7a4cffee70ca2bd8cee7984b865c.tar.bz2
rsyslog-f0124d12639f7a4cffee70ca2bd8cee7984b865c.zip
imuxsock: pass along missing legacy config variables
Not doing so caused that the system log socket was unaffected by these directives. bCreatePath is still not passed but currently, there's no placeholder for it.
-rw-r--r--plugins/imuxsock/imuxsock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index c503852c..1c4ba472 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -159,11 +159,11 @@ static int startIndexUxLocalSockets; /* process fd from that index on (used to
static int nfd = 1; /* number of Unix sockets open / read-only after startup */
static int sd_fds = 0; /* number of systemd activated sockets */
-/* config vars for legacy config system */
#define DFLT_bCreatePath 0
#define DFLT_ratelimitInterval 0
#define DFLT_ratelimitBurst 200
#define DFLT_ratelimitSeverity 1 /* do not rate-limit emergency messages */
+/* config vars for the legacy config system */
static struct configSettings_s {
int bOmitLocalLogging;
uchar *pLogSockName;
@@ -188,6 +188,7 @@ static struct configSettings_s {
int bParseTrusted; /* parse trusted properties */
} cs;
+/* config vars for the v2 config system (rsyslog v6+) */
struct instanceConf_s {
uchar *sockName;
uchar *pLogHostName; /* host name to use with this socket */
@@ -1256,11 +1257,14 @@ BEGINendCnfLoad
CODESTARTendCnfLoad
if(!loadModConf->configSetViaV2Method) {
/* persist module-specific settings from legacy config system */
+ /* these are used to initialize the system log socket (listeners[0]) */
loadModConf->bOmitLocalLogging = cs.bOmitLocalLogging;
loadModConf->pLogSockName = cs.pLogSockName;
loadModConf->bIgnoreTimestamp = cs.bIgnoreTimestampSysSock;
+ loadModConf->bUseSysTimeStamp = cs.bUseSysTimeStampSysSock;
loadModConf->bUseFlowCtl = cs.bUseFlowCtlSysSock;
loadModConf->bAnnotateSysSock = cs.bAnnotateSysSock;
+ loadModConf->bWritePidSysSock = cs.bWritePidSysSock;
loadModConf->bParseTrusted = cs.bParseTrusted;
loadModConf->ratelimitIntervalSysSock = cs.ratelimitIntervalSysSock;
loadModConf->ratelimitBurstSysSock = cs.ratelimitBurstSysSock;