[Bug 256671] New: syslog default wrong, cannot detect installed syslog variant
https://bugzilla.novell.com/show_bug.cgi?id=256671 Summary: syslog default wrong, cannot detect installed syslog variant Product: openSUSE 10.3 Version: Alpha 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dmueller@novell.com QAContact: qa@suse.de the fillup template of klogd claims that "syslog" is the default, while actually syslog-ng is the default. also, it should default to "" and do an autodetection of the installed package (if only one of it is installed, otherwise barf). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |werner@novell.com |screening@forge.provo.novell| |.com | ------- Comment #1 from dmueller@novell.com 2007-03-26 05:52 MST ------- comes from klogd fillup -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mt@novell.com ------- Comment #2 from werner@novell.com 2007-03-28 06:54 MST ------- Add Marius to CC -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |dmueller@novell.com ------- Comment #3 from mt@novell.com 2007-03-28 07:35 MST ------- When does it happen exactly? Can you provide some error messages and decribe what you made or how to reproduce it, please? OK, it is true that the fillup template uses old default (syslogd). But the %post sections in spec files from syslogd and syslog-ng update the SYSLOG_DAEMON variable. So this should be not a problem. The /etc/init.d/syslog script trys to detect which syslog daemon is running and which one is configured. I've seen a problem like this, when the installer was broken and didn't followed rpm dependencies installing syslog* before klogd (basically because klogd was not on the first CD). Or if one ignores RPM dependencies manually, of course. The case, that neither syslog-ng nor syslogd are installed, is OK to cause failures IMO (circular deps klogd req syslogd|syslog-ng is not a good idea). Dirk, Please provide more info. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|dmueller@novell.com | ------- Comment #4 from dmueller@novell.com 2007-03-30 08:01 MST ------- the %post script failed here because I installed syslogd before I uninstalled syslog-ng. Of course I don't want to end up without syslog at any point in time so I thought thats a natural install order :) anyway, the %post magic isn't necessary if you just let the default be "" and do an autodetection on start/stop when its "" -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mt@novell.com -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 ------- Comment #5 from mt@novell.com 2007-04-26 08:37 MST ------- Created an attachment (id=135009) --> (https://bugzilla.novell.com/attachment.cgi?id=135009&action=view) Adds update of SYSLOG_DAEMON to an installed daemon -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 ------- Comment #6 from mt@novell.com 2007-04-26 08:37 MST ------- Created an attachment (id=135010) --> (https://bugzilla.novell.com/attachment.cgi?id=135010&action=view) Adds update of SYSLOG_DAEMON to an installed daemon -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 ------- Comment #7 from mt@novell.com 2007-04-26 08:39 MST ------- Created an attachment (id=135015) --> (https://bugzilla.novell.com/attachment.cgi?id=135015&action=view) Changed SYSLOG_DAEMON default value to "" Further it fixes the y2 meta comments to not to try to execute SuSEconfig.syslog-ng - it does not exists any more. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #135015|text/x-patch |text/plain mime type| | Attachment #135015|0 |1 is patch| | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|mt@novell.com | ------- Comment #8 from mt@novell.com 2007-04-26 08:43 MST ------- A STABLE package containing the changes builds as mbuild job app-team-mt-303, package for 10.2 as app-team-mt-304. Please let me know what you think about the changes. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |dmueller@novell.com ------- Comment #9 from werner@novell.com 2007-04-26 08:48 MST ------- Dirk? Does this help? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|dmueller@novell.com | ------- Comment #10 from dmueller@novell.com 2007-04-27 05:43 MST ------- those mbuilds don't exist. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mt@novell.com ------- Comment #11 from werner@novell.com 2007-04-27 06:40 MST ------- You're to slow, Marius please redo -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 ------- Comment #12 from mt@novell.com 2007-05-02 05:46 MST ------- Done. See mbuild jobs app-team-mt-313 .. 316 or RPMs at http://w3.suse.de/~mt/syslog/bug-256671/v2/ I've added some code reseting the variable in spec files (the syslog-ng variant here; untested until now): %postun [...] +# reset SYSLOG_DAEMON variable +if test -f etc/sysconfig/syslog ; then + source etc/sysconfig/syslog + if test "$SYSLOG_DAEMON" == "syslog-ng" ; then + sed -i -e 's/^SYSLOG_DAEMON=.*/SYSLOG_DAEMON=""/g' \ + etc/sysconfig/syslog + fi +fi -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|mt@novell.com | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |dmueller@novell.com -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 ------- Comment #13 from mt@novell.com 2007-05-02 06:35 MST ------- Works fine for me all together. On erase, %postun resets $SYSLOG_DAEMON to "" if the erased daemon is configured. On install / update, %post sets SYSLOG_DAEMON to the currently installed daemon if it is "" or points to an non-existing daemon. Dirk, can you retest if it does what you expect? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|dmueller@novell.com | ------- Comment #14 from dmueller@novell.com 2007-05-07 16:19 MST ------- oldboy:/suse/mt/Export/syslog/bug-256671/v2/stable # rpm -ev syslogd .failed error: %preun(syslogd-1.4.1-604.i586) scriptlet failed, exit status 1 uninstalling syslogd when both syslog-ng and syslogd from above source are installed fails for me. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 mt@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |dmueller@novell.com ------- Comment #15 from mt@novell.com 2007-05-14 04:04 MST ------- Did you installed the new klogd package? This is mandatory - klogd provides the init script with the "autodetection" modification, not syslogd or syslog-ng. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|dmueller@novell.com | ------- Comment #16 from dmueller@novell.com 2007-05-14 06:21 MST ------- indeed, I was confused by the %release clash. with a forced install of klogd it works fine. thanks -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 werner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #17 from werner@novell.com 2007-05-14 06:24 MST ------- OK fixed -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 ------- Comment #18 from dmueller@novell.com 2007-05-14 06:37 MST ------- are the packages already in STABLE? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256671 ------- Comment #19 from mt@novell.com 2007-05-14 07:46 MST ------- (In reply to comment #18)
are the packages already in STABLE?
Yes, submitted to /work/src/done/STABLE at least. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com