mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 04:00:41 +01:00
added some diagnostics info to startup
This commit is contained in:
parent
aa77ac1d71
commit
e0afe5c825
@ -37,8 +37,8 @@ case $1 in
|
||||
;;
|
||||
'wait-startup') # wait for rsyslogd startup ($2 is the instance)
|
||||
while test ! -f rsyslogd$2.started; do
|
||||
#true
|
||||
sleep 0.1 # if this is not supported by all platforms, use above!
|
||||
true
|
||||
#sleep 0.1 # if this is not supported by all platforms, use above!
|
||||
done
|
||||
echo "rsyslogd$2 started with pid " `cat rsyslog$2.pid`
|
||||
;;
|
||||
|
||||
@ -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. */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user