Re: [opensuse] Why has syslog-ng changed to rsyslog?



Am Dienstag, 30. März 2010 12:06:14 schrieb Togan Muftuoglu:
Marius Tomaschewski wrote:
On upgrade/ update, no "rpm -e $package" should be done, but always
a "rpm -U $package.rpm".

So which one is zypper up doing ? as the system was updated via
opensuse.org-online_update cron job.

It should do rpm -Uvh only.

But even it makes rpm -e ; rpm -U, it will work.

See https://bugzilla.novell.com/show_bug.cgi?id=592192#c8:

When you have an active syslog-ng and just update it, syslog-ng
remains active:

+ source etc/sysconfig/syslog
++ KERNEL_LOGLEVEL=1
++ SYSLOGD_PARAMS=
++ KLOGD_PARAMS=-x
++ SYSLOG_DAEMON=syslog-ng
++ RSYSLOGD_COMPAT_VERSION=
++ RSYSLOGD_PARAMS=
++ SYSLOG_NG_PARAMS=
++ RSYSLOGD_NATIVE_VERSION=4
+ replace_syslog=no
+ test syslog-ng '!=' syslog-ng
+ test no = yes

Also when the update is broken and removes first, it works:

*** while remove, it resets itself:

+ source etc/sysconfig/syslog
++ KERNEL_LOGLEVEL=1
++ SYSLOGD_PARAMS=
++ KLOGD_PARAMS=-x
++ SYSLOG_DAEMON=syslog-ng
++ RSYSLOGD_COMPAT_VERSION=
++ RSYSLOGD_PARAMS=
++ SYSLOG_NG_PARAMS=
++ RSYSLOGD_NATIVE_VERSION=4
+ test syslog-ng == syslog-ng
+ sed -i -e 's/^SYSLOG_DAEMON=.*/SYSLOG_DAEMON=""/g' etc/sysconfig/syslog


*** while reinstall, it sets to itself again:

+ source etc/sysconfig/syslog
++ KERNEL_LOGLEVEL=1
++ SYSLOGD_PARAMS=
++ KLOGD_PARAMS=-x
++ SYSLOG_DAEMON=
++ RSYSLOGD_COMPAT_VERSION=
++ RSYSLOGD_PARAMS=
++ SYSLOG_NG_PARAMS=
++ RSYSLOGD_NATIVE_VERSION=4
+ replace_syslog=no
+ test '' '!=' syslog-ng
+ test -z ''
+ replace_syslog=yes
+ test yes = yes
+ sed -i -e 's/^SYSLOG_DAEMON=.*/SYSLOG_DAEMON="syslog-ng"/g'
etc/sysconfig/syslog


Only when you install another daemon in the time between, it changes:

SYSLOG_DAEMON=syslog-ng

- remove syslog-ng
SYSLOG_DAEMON=""

- install rsyslog
SYSLOG_DAEMON="rsyslogd"

- install syslog-ng
SYSLOG_DAEMON="rsyslogd"

But in this case,
this was a request to switch to rsyslog + install additional one.

Gruesse / Regards,
Marius Tomaschewski <mt@xxxxxxx> <mt@xxxxxxxxxx>
--
Server Technologies Team, SUSE LINUX Products GmbH,
Nuernberg; GF: Markus Rex; HRB 16746 (AG Nuernberg)
GPG/PGP public key fingerprint:
DF17 271A AD15 006A 5BB9 6C96 CA2F F3F7 373A 1CC0
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [Fwd: FC9 Network Config]
    ... I just tried to install the syslog-ng as the following cmd: ... conflicts with file from package rsyslog-3.14.1-2.fc9.i386 ... packages..I`ve installed it via rpm with --nodeps argument. ...
    (Fedora)
  • Re: rsync progress
    ... rpm was also installed. ... I don't think you /can/ install rpm on Ubuntu. ... Package management systems are one of the deepest divides between Linux distros. ... The first distro, pretty much, was the Softlanding Linux System, SLS. ...
    (Ubuntu)
  • FW: [SLE] YaST Online Update Problem
    ... >>update one of the rpms manually to see if rpm will give you a better error ... >SuSE to try to apply one of the patches? ... >I've always used YaST for Online Updates and for installing new packages. ... Not only that, but at the end of the install, it ...
    (SuSE)
  • Re: How to install Java/Frefox in FC6 -
    ... just don't trust java and rpm in the same breath, ... recall that when building packages, you always opt for ./configure && ... make && make install and I don't recall a single instance where you have ... I rebuilt kde to kde-3.3.0 using konstruct, didn't fix it. ...
    (Fedora)
  • Re: Dependencies
    ... Should you install it or no? ... RPM is just a low-level tool that does one thing and that one ... If getting the GPG keys causes you heartburn, ... > To stay in the RPM subject, Apache give keys for their tarball versions. ...
    (linux.redhat)