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