[Bug 427671] New: "/etc/init.d/dbus restart" considered harmful
https://bugzilla.novell.com/show_bug.cgi?id=427671 Summary: "/etc/init.d/dbus restart" considered harmful Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: vuntz@novell.com QAContact: qa@suse.de Found By: --- I wanted to check something and restarted dbus with "/etc/init.d/dbus restart". I knew some things were going to crash, but, well, my complete session was killed :-) I think "/etc/init.d/dbus restart" should just print a message like "Do not use this: applications will crash and your session might get killed. If you really want to restart dbus, use force-restart" and the feature should be moved to /etc/init.d/dbus force-restart" -- 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=427671 Christoph Thiel <cthiel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cthiel@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |thoenig@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=427671 User thoenig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c1 Timo Hoenig <thoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |werner@novell.com --- Comment #1 from Timo Hoenig <thoenig@novell.com> 2008-09-25 04:54:14 MDT --- Yupp, that sounds fine to me. Werner, is there anything like a LSB thing I'd violate if a service doesn't restart and something like force-restart is required? -- 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=427671 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c2 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@novell.com Status|NEEDINFO |RESOLVED Info Provider|werner@novell.com | Resolution| |INVALID --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2008-09-25 05:15:44 MDT --- AFAIK there is no `force-restart' but a `try-restart' and this is what the sysadmin should use first. -- 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=427671 User thoenig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c3 Timo Hoenig <thoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #3 from Timo Hoenig <thoenig@novell.com> 2008-09-25 05:19:39 MDT --- Thanks for the information. Next question: is it a LSB violation if a service is not being restarted on rc$SERVICE restart? -- 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=427671 Timo Hoenig <thoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |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=427671 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c4 --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2008-09-25 07:37:05 MDT --- There is no `forece-restart' only `restart' and it does exactly what it should. IMHO this bug is invalid. -> http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-gen... -- 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=427671 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c5 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|werner@novell.com | --- Comment #5 from Dr. Werner Fink <werner@novell.com> 2008-09-25 07:37:15 MDT --- There is no `forece-restart' only `restart' and it does exactly what it should. IMHO this bug is invalid. -> http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-gen... -- 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=427671 User thoenig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c6 Timo Hoenig <thoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #6 from Timo Hoenig <thoenig@novell.com> 2008-09-25 07:47:30 MDT --- Many thanks, that's what I wanted to know. Vincent, as you can imagine I'm not willing to violate the LSB. If you have another idea on your mind on how to make this more user friendly, please reopen. 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.
https://bugzilla.novell.com/show_bug.cgi?id=427671 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c7 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #7 from Vincent Untz <vuntz@novell.com> 2008-09-25 08:24:03 MDT --- I'm reopening, and I'll quote the LSB: "try-restart restart the service if the service is already running" So in this case, we don't care about the difference between restart and try-restart: dbus is running anyway "Other init-script actions may be defined by the init script." So we can have force-restart if we want. "The restart, try-restart, reload and force-reload actions may be atomic; that is if a service is known not to be operational after a restart or reload, the script may return an error without any further action." IMHO, this means that we can return an error for restart. -- 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=427671 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c8 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro@novell.com --- Comment #8 from Dr. Werner Fink <werner@novell.com> 2008-09-25 08:34:38 MDT --- Hmmm .. are you aware that this may break maintenence scripts and maybe our rpm macros? It is expected that `restart' simply restarts service. -- 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=427671 User thoenig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c9 --- Comment #9 from Timo Hoenig <thoenig@novell.com> 2008-09-25 08:42:55 MDT --- Well, the last sentence refers to the service itself. And to be honest I can not claim that D-Bus is not properly working after `rcdbus restart` ;-) -- 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=427671 User thoenig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c10 --- Comment #10 from Timo Hoenig <thoenig@novell.com> 2008-09-25 08:43:46 MDT --- mid-air, hence: last sentence in the sense of last sentence in #7. -- 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=427671 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c11 --- Comment #11 from Vincent Untz <vuntz@novell.com> 2008-09-25 08:52:10 MDT --- (In reply to comment #8 from Dr. Werner Fink)
Hmmm .. are you aware that this may break maintenence scripts and maybe our rpm macros? It is expected that `restart' simply restarts service.
If you restart dbus from a maintenance script or a rpm macro, you kill the desktop of the user. Which might have the side effect of killing the maintenance script of the rpm installation... So, I don't see how good this is. Also, the LSB is pretty clear here that there are cases where it's okay to return an error for restart. -- 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=427671 Timo Hoenig <thoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- 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=427671 User thoenig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=427671#c19 Timo Hoenig <thoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX --- Comment #19 from Timo Hoenig <thoenig@novell.com> 2008-10-28 06:51:58 MDT --- Closing as WONTFIX. -- 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