mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 14:30: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)
|
'wait-startup') # wait for rsyslogd startup ($2 is the instance)
|
||||||
while test ! -f rsyslogd$2.started; do
|
while test ! -f rsyslogd$2.started; do
|
||||||
#true
|
true
|
||||||
sleep 0.1 # if this is not supported by all platforms, use above!
|
#sleep 0.1 # if this is not supported by all platforms, use above!
|
||||||
done
|
done
|
||||||
echo "rsyslogd$2 started with pid " `cat rsyslog$2.pid`
|
echo "rsyslogd$2 started with pid " `cat rsyslog$2.pid`
|
||||||
;;
|
;;
|
||||||
|
|||||||
@ -3174,6 +3174,7 @@ int realMain(int argc, char **argv)
|
|||||||
uchar *LocalHostName;
|
uchar *LocalHostName;
|
||||||
uchar *LocalDomain;
|
uchar *LocalDomain;
|
||||||
uchar *LocalFQDNName;
|
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
|
/* 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
|
* 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))
|
if ((argc -= optind))
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
DBGPRINTF("rsyslogd %s startup, compatibility mode %d, module path '%s'\n",
|
DBGPRINTF("rsyslogd %s startup, compatibility mode %d, module path '%s', cwd:%s\n",
|
||||||
VERSION, iCompatibilityMode, glblModPath == NULL ? "" : (char*)glblModPath);
|
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. */
|
/* we are done with the initial option parsing and processing. Now we init the system. */
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user