Red Hat Bugzilla – Bug 820311
Manpage: rsyslogd does the fork in debug mode while manpage says otherwise
Last modified: 2012-06-20 02:59:09 EDT
Description of problem: rsyslog-5.8.10-1.el6.x86_64 When starting rsyslogd in debug mode (rsyslogd -d) the process should not fork and disconnect from the terminal but it actually does. This bug makes rsyslogd debugging hard. This is a regression introduced by rsyslog update in bug 672182.
Lowering the severity since this can be workarounded with rsyslogd -dn But anyway it seems to be a bug & regression
According to upstream, this is the intended behavior.
Reopening this bug for updating the rsyslogd manpage. ATM it states: -d Turns on debug mode. Using this the daemon will not proceed a fork(2) to set itself in the background, but opposite to that stay in the foreground and write much debug information on the current tty. See the DEBUGGING section for more information. which is in opposite to #c5 (intended behavior).
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, the manual page stated that the '-d' option which turns on debugging causes the daemon to run in foreground. This was misleading as the current behavior is to run in background. The manual page was updated to reflect the correct behavior.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1,2 @@ -Previously, the manual page stated that the '-d' option which turns on debugging causes the daemon to run in foreground. This was misleading as the current behavior is to run in background. The manual page was updated to reflect the correct behavior.+Previously, the manual page stated that the '-d' option which turns on debugging causes the daemon to run in foreground. +This was misleading as the current behavior is to run in background. The manual page was updated to reflect the correct behavior.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-0796.html