summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-11 07:15:03 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-11 07:15:03 +0000
commit886bcc2dec65590dfe893d7d02bd28d480a8e876 (patch)
tree86f0c7fa935b7cca1195728e80e8700feaabd452
parent3896b8c5fe0b0058310a8135660fb74822a89ede (diff)
downloadrsyslog-886bcc2dec65590dfe893d7d02bd28d480a8e876.tar.gz
rsyslog-886bcc2dec65590dfe893d7d02bd28d480a8e876.tar.xz
rsyslog-886bcc2dec65590dfe893d7d02bd28d480a8e876.zip
added x-info field to rsyslogd startup/shutdown message. Hopefully points
users to right location for further info (many don't even know they run rsyslog ;))
-rw-r--r--ChangeLog3
-rw-r--r--syslogd.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d3cb5095..24370bc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
Version 2.0.2 STABLE (rgerhards), 2008-02-??
- fixed a bug that could cause invalid string handling via strerror_r
varmojfekoj provided the patch - many thanks!
+- added x-info field to rsyslogd startup/shutdown message. Hopefully
+ points users to right location for further info (many don't even know
+ they run rsyslog ;))
---------------------------------------------------------------------------
Version 2.0.1 STABLE (rgerhards), 2008-01-24
- fixed a bug in integer conversion - but this function was never called,
diff --git a/syslogd.c b/syslogd.c
index 883bf00a..2858b863 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -3605,7 +3605,7 @@ static void die(int sig)
dbgprintf(" exiting on signal %d\n", sig);
(void) snprintf(buf, sizeof(buf) / sizeof(char),
" [origin software=\"rsyslogd\" " "swVersion=\"" VERSION \
- "\" x-pid=\"%d\"]" " exiting on signal %d.",
+ "\" x-pid=\"%d\" x-info=\"http://www.rsyslog.com\"]" " exiting on signal %d.",
(int) myPid, sig);
errno = 0;
logmsgInternal(LOG_SYSLOG|LOG_INFO, buf, ADDDATE);
@@ -4576,7 +4576,7 @@ static void init(void)
*/
snprintf(bufStartUpMsg, sizeof(bufStartUpMsg)/sizeof(char),
" [origin software=\"rsyslogd\" " "swVersion=\"" VERSION \
- "\" x-pid=\"%d\"][x-configInfo udpReception=\"%s\" " \
+ "\" x-pid=\"%d\" x-info=\"http://www.rsyslog.com\"][x-configInfo udpReception=\"%s\" " \
"udpPort=\"%s\" tcpReception=\"%s\" tcpPort=\"%s\"]" \
" restart",
(int) myPid,