[Bug 470654] New: can not enable/disable a system service in a single runlevel
https://bugzilla.novell.com/show_bug.cgi?id=470654 Summary: can not enable/disable a system service in a single runlevel Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: wangyc0307@gmail.com QAContact: jsrain@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5 when I tried to enable a system service just in a single runlevel , for example, the vsftpd only in runlevel 5, I used the runlevel dialog of Yast, I switched to the expert mode, selected the vsftpd entry, and ticked ONLY the runlevel 5's check box. But it turned out that vsftpd in runlevel 3 AND 5 were BOTH enabled. Actually, this is the case for all the services - when the check box of one runlevel is checked, the service will be enabled in ALL the runlevels which is supposed to be "Default-Start" . So I would like to make sure if this is designed to work like this or this is really a bug. And if it is designed to be so, I still hope I can enable/disable a system service in a single runlevel. I think this will happen in all openSUSE11.1 machines and is easy to reproduce, so I don't offer the yast's log, but if you really need that, please tell me. Thank you. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=470654 User wangyc0307@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c1 --- Comment #1 from yc wang <wangyc0307@gmail.com> 2009-01-29 09:27:54 MST --- Created an attachment (id=268682) --> (https://bugzilla.novell.com/attachment.cgi?id=268682) the screenshot of what I was doing -- 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=470654 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |puzel@novell.com AssignedTo|bnc-team-screening@forge.pr |locilka@novell.com |ovo.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=470654 User locilka@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c2 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|locilka@novell.com |werner@novell.com --- Comment #2 from Lukas Ocilka <locilka@novell.com> 2009-02-19 02:54:22 MST --- Yes, this is reproducible with another service I tried: YaST called this command Service.ycp:241 Calling /sbin/insserv -f /etc/init.d/smt,start=5 But the service had been enabled in Default-Start instead of runlevel 5 only (I did that on service disabled in all levels). /etc/init.d/smt contains (header): ### BEGIN INIT INFO # Provides: smt # Required-Start: $local_fs $remote_fs $network mysql apache2 cron # X-UnitedLinux-Should-Start: $local_fs $remote_fs $network mysql ypclient apache2 cron # Required-Stop: $local_fs $remote_fs $network # X-UnitedLinux-Should-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: SMT - Subscription Management Tool for SLE # Description: Handles SMT service by apache2 with plugins, mysql and cron ### END INIT INFO Reassigning to the insserv maintainer... -- 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=470654 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c3 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2009-02-20 08:51:54 MST --- If you call /sbin/insserv -f /etc/init.d/smt,start=5 then you get runlevel 5 as you are overwriting the default runlevel specified in the file /etc/init.d/smt this is how it works and this is how it is readable in man insserv. -- 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=470654 User wangyc0307@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c4 --- Comment #4 from yc wang <wangyc0307@gmail.com> 2009-02-21 01:17:26 MST --- It seems that if you call /sbin/insserv -f /etc/init.d/smt,start=n, then BOTH the default runlevel AND the n runlevel(if it's not in the default runlevel) will be enabled. Maybe this is the way it had been designed. But for me, as a end user, I don't really care how /sbin/insserv works and what the default runlevel is. What I want is to enable a specified runlevel, as ticking the corresponding check box, and I don't hope the default runlevel is enabled too. So can this be satisfied simply with YaST? 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=470654 User wangyc0307@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c5 yc wang <wangyc0307@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #5 from yc wang <wangyc0307@gmail.com> 2009-02-21 01:19:42 MST --- It seems that if you call /sbin/insserv -f /etc/init.d/smt,start=n, then BOTH the default runlevel AND the n runlevel(if it's not in the default runlevel) will be enabled. Maybe this is the way it had been designed. But for me, as a end user, I don't really care how /sbin/insserv works and what the default runlevel is. What I want is to enable a specified runlevel, as ticking the corresponding check box, and I don't hope the default runlevel is enabled too. So can this be satisfied simply with YaST? 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=470654 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c6 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |werner@novell.com Resolution| |WONTFIX --- Comment #6 from Dr. Werner Fink <werner@novell.com> 2009-02-23 03:41:41 MST --- I'll not change insserv. The default runlevels are a hard requirement otherwise the system may not boot correct. If you really want to ignore the system default you may use an overwrite file: mkdir -p /etc/insserv/overrides sed -rn '/^### BEGIN INIT INFO/,/^### END INIT INFO/{ s/(.*Default-Start:[[:blank:]]*).*/\15/ p }' < /etc/init.d/smt > /etc/insserv/overrides/smt this is curently the only way to not only add an additional runelvel but remove the default values intended by the author of the script. -- 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=470654 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c7 --- Comment #7 from Dr. Werner Fink <werner@novell.com> 2009-02-23 05:32:13 MST --- Created an attachment (id=274646) --> (https://bugzilla.novell.com/attachment.cgi?id=274646) insserv-1.12.0-22.24.i586.rpm insserv allowing to disregard default run levels of scripts with option -f. -- 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=470654 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c8 --- Comment #8 from Dr. Werner Fink <werner@novell.com> 2009-02-23 05:33:01 MST --- Created an attachment (id=274647) --> (https://bugzilla.novell.com/attachment.cgi?id=274647) insserv-1.12.0-22.24.x86_64.rpm insserv allowing to disregard default run levels of scripts with option -f. -- 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=470654 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c9 --- Comment #9 from Dr. Werner Fink <werner@novell.com> 2009-02-23 05:34:16 MST --- You may try out one of the above attachments with a insserv allowing to disregard default run levels if option -f is specified ... but this will not become part of openSuSE 11.1. -- 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=470654 User wangyc0307@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c10 --- Comment #10 from yc wang <wangyc0307@gmail.com> 2009-03-01 02:43:34 MST --- Thank you for the bug-470654_insserv-1.12.0-22.24.i586.rpm, it worked. However I still think the design is kind of strange: It's not that you can't disable the service in default runlevels -- you can disable it in all default runlevels, *but* you can't disable it respectively, for example, you can't disable it in runlevel 3 while enabling it in runlevel 5, Do the two runlevels interact? Actually, I used to use Fedora, and its system-config-service utility can do what I expect. So I thought openSUSE was supposed to do that too. Anyway, I won't ask for that again, and thanks very much for your 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.
https://bugzilla.novell.com/show_bug.cgi?id=470654 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=470654#c11 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |grey-olli@ya.ru --- Comment #11 from Dr. Werner Fink <werner@novell.com> 2009-03-30 06:54:01 MDT --- *** Bug 482532 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=482532 -- 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