Mailinglist Archive: opensuse-bugs (3384 mails)

< Previous Next >
[Bug 728565] rsyslogd: only rsyslog.early.conf is used

https://bugzilla.novell.com/show_bug.cgi?id=728565

https://bugzilla.novell.com/show_bug.cgi?id=728565#c46


--- Comment #46 from Marius Tomaschewski <mt@xxxxxxxx> 2012-02-13 20:16:00 UTC
---
(In reply to comment #44)
A few things, then:

1. after updating the rpm, 'rcsyslog restart' failed. Not sure why.

Hmm... never happened to me while I were testing it.

I'll retest it tomorrow again. Which systemd are you using?

Please take this one:

http://download.opensuse.org/repositories/home:/fcrozat:/systemd/openSUSE_12.1/

there were a dependency problem in the older packages causing strange
things (start/restart triggered start+stop).

(In reply to comment #45)
After reboot, the syslog service is running properly (or, at least, it
appears to be).

OK.

However, might I suggest a re-wording of the comment starting with "It may
cause....":

# implementation of the init / systemd scripts. It may cause
# a try to detect whether network is required for the config
# or choose one of the above modi.

The above reads poorly for me. I respectfully submit that an
alteration might be worthwhile, however I have no concrete
suggestions.
x

:-)

Anybody in Cc -- feel free to propose a better description:

## Type: list(yes,no,"")
## Default: ""
## Config: ""
## ServiceRestart: syslog
#
# Specify whether the syslog configuration requires network.
# Set to "yes" to delay the syslog daemon start until network
# is already started, set to "no" to start it earlier.
#
# The behavior of the default setting "" depends on the daemon
# specified in the SYSLOG_DAEMON variable and on the current
# implementation of the init / systemd scripts. It may cause
# a try to detect whether network is required for the config
# or choose one of the above modi.
#
SYSLOG_REQUIRES_NETWORK=""

What currently happens is:

syslogd / syslog-ng: try to detect
rsyslogd : just start earlier


Well, it we can _keep_ the detection, but instead of the "usually
not working one" checking rsyslog.conf, we check like this:

while read line ; do
case $line in
\#*|"") continue ;; # comment or empty
*) echo network=network.target ; break ;; # there is something
esac
done < /etc/rsyslog.d/remote.conf
# ^^^^^^^^^^^^^^^^^^^^^^^^^^

and have an usually working variant [an no alternation in text].

Hmm... I think, this is the way to go. Opinions?

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >