summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-23 08:03:21 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-23 08:03:21 +0100
commite0afe5c8258d4b70ade84f1176c44ae6d593f2df (patch)
tree6bc111eeecb9d402feb233eca3deee1257a1cbbe /tools
parentaa77ac1d71f0a12eb75c48623993eba3be8ec105 (diff)
downloadrsyslog-e0afe5c8258d4b70ade84f1176c44ae6d593f2df.tar.gz
rsyslog-e0afe5c8258d4b70ade84f1176c44ae6d593f2df.tar.xz
rsyslog-e0afe5c8258d4b70ade84f1176c44ae6d593f2df.zip
added some diagnostics info to startup
Diffstat (limited to 'tools')
-rw-r--r--tools/syslogd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 64b23566..a61d1e5d 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -3174,6 +3174,7 @@ int realMain(int argc, char **argv)
uchar *LocalHostName;
uchar *LocalDomain;
uchar *LocalFQDNName;
+ char cwdbuf[128]; /* buffer to obtain/display current working directory */
/* first, parse the command line options. We do not carry out any actual work, just
* see what we should do. This relieves us from certain anomalies and we can process
@@ -3260,8 +3261,9 @@ int realMain(int argc, char **argv)
if ((argc -= optind))
usage();
- DBGPRINTF("rsyslogd %s startup, compatibility mode %d, module path '%s'\n",
- VERSION, iCompatibilityMode, glblModPath == NULL ? "" : (char*)glblModPath);
+ DBGPRINTF("rsyslogd %s startup, compatibility mode %d, module path '%s', cwd:%s\n",
+ VERSION, iCompatibilityMode, glblModPath == NULL ? "" : (char*)glblModPath,
+ getcwd(cwdbuf, sizeof(cwdbuf)));
/* we are done with the initial option parsing and processing. Now we init the system. */