[Bug 449182] New: insserv makes errors in assigning start / stop sequence of boot-scripts
https://bugzilla.novell.com/show_bug.cgi?id=449182 Summary: insserv makes errors in assigning start / stop sequence of boot-scripts Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dieter.jurzitza@t-online.de QAContact: qa@suse.de Found By: --- When assigning the tag "$ALL" to Required-Start in ntp (both in openSUSE 10.3 and openSUSE 11.0) insserv creates strange links in rc5.d and rc3.d: This is an example output from: insserv -v ntp > ~/ntplog 2>&1 cat ~/ntplog | grep ntp insserv: remove service /etc/init.d/rc5.d/S09ntp insserv: enable service ../ntp -> /etc/init.d/rc5.d/S21ntp insserv: remove service /etc/init.d/rc5.d/K13ntp insserv: enable service ../ntp -> /etc/init.d/rc5.d/K01ntp insserv: remove service /etc/init.d/rc5.d/S21ntp insserv: enable service ../ntp -> /etc/init.d/rc5.d/S01ntp insserv: remove service /etc/init.d/rc5.d/K01ntp insserv: enable service ../ntp -> /etc/init.d/rc5.d/K21ntp restricted to the rc5.d (rc3.d and rc2.d depicts an equivalent behaviour) entries when using insserv as supplied with openSUSE 11.0 after entering $ALL into /etc/init.d/ntp. This clearly shows that for some (to me!) strange reason the link S21->../ntp is enabled but removed again to be replaced by S01->../ntp, what is definitively not the last process to be started in the list nor, what I would expect to happen. A similar behaviour can be found from within openSUSE 10.3 and the insserv-version from there. When installing insserv from current factory, it moans about a circular shutdown dependency between network and isdn, if one fixes this the boot sequence is generated as I would expect it. Fix: update insserv for both openSUSE 11.0 & 10.3? I already discussed about this with Mr. Fink, so I am sure he's got an opinion in this regard! Thank you for looking into this, take care Dieter Jurzitza -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 Robert Vojcik <rvojcik@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |werner@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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=449182#c1 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Minor Status|NEW |NEEDINFO Info Provider| |dieter.jurzitza@t-online.de Priority|P5 - None |P4 - Low --- Comment #1 from Dr. Werner Fink <werner@novell.com> 2008-11-28 03:44:35 MST --- Remove all other dependencies beside $ALL and retry. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|insserv makes errors in assigning start / stop |OS11.0: insserv makes errors in assigning start |sequence of boot-scripts |/ stop sequence of boot-scripts -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 User dieter.jurzitza@t-online.de added comment https://bugzilla.novell.com/show_bug.cgi?id=449182#c2 --- Comment #2 from Dieter Jurzitza <dieter.jurzitza@t-online.de> 2008-11-30 14:16:36 MST --- Ok. I removed all dependencies from the header of ntp besides $ALL: ### BEGIN INIT INFO # Provides: ntp ntpd xntpd # Required-Start: $ALL # Required-Stop: # Default-Start: 2 3 5 # Default-Stop: 0 1 6 # Short-Description: Network time protocol daemon (ntpd) # Description: Start network time protocol daemon (NTPD). ### END INIT INFO and the result is: ntp is linked to S01../ntp. This is the result for openSUSE 11.0. I removed "all other" dependencies - the result is the same as before, the script would be started first - what should not happen IMHO. Please let me know what I should test further / whether I got something wrong, take care Dieter Jurzitza -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=449182#c3 --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2008-12-01 02:59:42 MST --- Please remove all but not `ntp' from Provides: line and test again. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 User dieter.jurzitza@t-online.de added comment https://bugzilla.novell.com/show_bug.cgi?id=449182#c4 --- Comment #4 from Dieter Jurzitza <dieter.jurzitza@t-online.de> 2008-12-01 13:01:01 MST --- Created an attachment (id=257061) --> (https://bugzilla.novell.com/attachment.cgi?id=257061) log output of insserv 1.11 from opensuse 11.0 after reducing dependencies in /etc/init.d/ntp -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 User dieter.jurzitza@t-online.de added comment https://bugzilla.novell.com/show_bug.cgi?id=449182#c5 --- Comment #5 from Dieter Jurzitza <dieter.jurzitza@t-online.de> 2008-12-01 13:01:52 MST --- Ok, this did the trick. Now the assignment is done in a way as I would expect it for ntp only - but how the heck can anybody know / understand what is neccessary to achieve this behaviour :-). And still, why does this happen? If I say $ALL I mean $ALL and I think this is a rule that should not be interpreted in the way it is by insserv. insserv-1.11 and before seem to act like this. This is the reduced header: ### BEGIN INIT INFO # Provides: ntp # Required-Start: $ALL # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 5 # Default-Stop: 0 1 6 # Short-Description: Network time protocol daemon (ntpd) # Description: Start network time protocol daemon (NTPD). ### END INIT INFO this is the command: insserv -v ntp > ntplog1 cat ntplog1 | grep ntp > ntplog ntplog is what you find attached to this report. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=449182#c6 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|dieter.jurzitza@t-online.de | Resolution| |WONTFIX --- Comment #6 from Dr. Werner Fink <werner@novell.com> 2008-12-02 04:09:14 MST --- This was a bug in insserv in the `$all' hanfdling code. As you noted this is fixed in the current insserv code. There will be no update for this for openSuSE 11.0 as this is not securityor critical bug fix. (Normally the scripts in /etc/init.d/ should not be changed by the user). -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 User dieter.jurzitza@t-online.de added comment https://bugzilla.novell.com/show_bug.cgi?id=449182#c7 --- Comment #7 from Dieter Jurzitza <dieter.jurzitza@t-online.de> 2008-12-02 13:48:25 MST --- Dear Mr. Fink, anyway, thanks a lot for looking into this! Installing the latest version of insserv on my own is far better than creating some strange test cases in order to ensure that the links remain where I need them to be. The point is: in an ideal world your sentence in brackets would be true :-)))) If you live in a real world and your ntp-server takes some time to connect, the boot process may hang for a minute or however it takes for ntp - making you think that your machine hangs. This was my experience with my son's computer, so, should I open a bug report for /etc/init.d/ntp in this case? Thanks again, take care Dieter Jurzitza -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=449182 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=449182#c8 --- Comment #8 from Dr. Werner Fink <werner@novell.com> 2008-12-03 03:25:35 MST --- Maybe you should open a bug for this yes ... the problem is that the old ntpdate tool is gone and I don't know if the current ntpd has an option to do the very first adjust in a faster way. -- 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.
participants (1)
-
bugzilla_noreply@novell.com