[Bug 732934] New: chkconfig service on|off does not work with systemd.
https://bugzilla.novell.com/show_bug.cgi?id=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c0 Summary: chkconfig service on|off does not work with systemd. Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: VMWare OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: carlos.e.r@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- Component: systemd. Host: 11.4 Guest: 12.1 RC2 Environ: VMWare player. chkconfig service on|off does not work with systemd. According to http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet chkconfig commands should still work (the only exception is chkconfig --list) Elanor:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. disabled postfix off Elanor:~ # chkconfig postfix on Elanor:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. disabled postfix off Elanor:~ # Elanor:~ # chkconfig -s postfix on Elanor:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. disabled postfix off Elanor:~ # Elanor:~ # systemctl enable postfix.service ln -s '/lib/systemd/system/postfix.service' '/etc/systemd/system/multi-user.target.wants/postfix.service' Elanor:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on Elanor:~ # -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c1 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro@suse.com --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2011-12-07 17:25:02 UTC --- please note our chkconfig implementation is different from Fedora one, so what is stated on Fedora wiki might not be relevant to openSUSE. Anyway, it should still "work" but my perl skills are very limited and I guess I didn't cover all cases in chkconfig code. help would be greatly appreciated. -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c2 --- Comment #2 from Ruediger Oertel <ro@suse.com> 2011-12-08 00:42:39 UTC --- it works on my factory machine (though it's spitting error messages), but I remember having the same problem on 12.1 (or earlier factory installs) fatou:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. disabled postfix off fatou:~ # chkconfig postfix on insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --no-reload --root / enable postfix.service'. ln -s '///lib/systemd/system/postfix.service' '///etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 fatou:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on could this be related to one of these changes in systemd: ? * Wed Oct 12 2011 fcrozat@suse.com - Shadow single sysv service, it was breaking runlevel 1. .. - Rewrite systemd-sysv-convert in bash (bnc#716939) -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c3 --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2011-12-09 15:02:56 UTC --- systemd-sysv-convert is only used for package upgrade, chkconfig doesn't use it. to confirm (or not), if "shadow single sysv service" is conflicting or not, just remove /lib/systemd/system/single.service (but I don't think it does). -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |carlos.e.r@opensuse.org -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c4 Carlos Robinson <carlos.e.r@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|carlos.e.r@opensuse.org | --- Comment #4 from Carlos Robinson <carlos.e.r@opensuse.org> 2011-12-20 20:27:32 UTC --- Ah, you were asking me. Ok. O:-) It returns an error. Elanor:/lib/systemd/system # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on Elanor:/lib/systemd/system # chkconfig postfix off insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / disable postfix.service'. rm '/etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 Elanor:/lib/systemd/system # chkconfig postfix on insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / enable postfix.service'. ln -s '///lib/systemd/system/postfix.service' '///etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 Elanor:/lib/systemd/system # I reinstate the link, I get: Elanor:/lib/systemd/system # Elanor:/lib/systemd/system # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on Elanor:/lib/systemd/system # chkconfig postfix off insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / disable postfix.service'. rm '/etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 Elanor:/lib/systemd/system # chkconfig postfix on insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / enable postfix.service'. ln -s '///lib/systemd/system/postfix.service' '///etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 Elanor:/lib/systemd/system # -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c5 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |carlos.e.r@opensuse.org --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2011-12-21 08:53:12 UTC --- could you test with latest package from home:fcrozat:systemd / systemd ? is-enabled was not working properly in certain case (mostly when not running under systemd). -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c6 Carlos Robinson <carlos.e.r@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|carlos.e.r@opensuse.org | --- Comment #6 from Carlos Robinson <carlos.e.r@opensuse.org> 2011-12-21 20:40:40 UTC --- (In reply to comment #5)
could you test with latest package from home:fcrozat:systemd / systemd ?
http://download.opensuse.org/repositories/home:/fcrozat:/systemd/ Trying... nope. Elanor:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on Elanor:~ # chkconfig postfix on Elanor:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on Elanor:~ # chkconfig postfix off insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / disable postfix.service'. rm '/etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 Elanor:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. disabled postfix off Elanor:~ # chkconfig postfix on insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / enable postfix.service'. ln -s '///lib/systemd/system/postfix.service' '///etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 Elanor:~ # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on Elanor:~ # -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c7 --- Comment #7 from Carlos Robinson <carlos.e.r@opensuse.org> 2011-12-21 20:54:27 UTC --- Notice that ... on/off complains with an error, but nevertheless, it appears to work. -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c8 --- Comment #8 from Frederic Crozat <fcrozat@suse.com> 2012-02-06 16:19:34 UTC --- hmm, I've double-checked the chkconfig code and it is not supposed to "enable" or "disable" systemd services at all. The only part supported is to report if a service is enabled or disabled, when a sysvinit file is "shadowed" by an systemd service. so, on / off don't work atm. -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c9 --- Comment #9 from Frederic Crozat <fcrozat@suse.com> 2012-02-06 17:02:57 UTC --- my bad, the code should just call insserv which would then call systemctl enable / disable. need to investigate further what is not working exactly. -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c10 --- Comment #10 from Frederic Crozat <fcrozat@suse.com> 2012-02-08 15:35:56 UTC --- Created an attachment (id=475059) --> (http://bugzilla.novell.com/attachment.cgi?id=475059) test chkconfig could you test this patched chkconfig ? it bypass test on initscript enable / disable if the service is shadowed by systemd. -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c11 --- Comment #11 from Carlos Robinson <carlos.e.r@opensuse.org> 2012-02-09 01:27:14 UTC --- (In reply to comment #10) Ok, I copied it to a temporary directory and run it from there. I think it works: Elanor:~/Bugzilla # ./chkconfig -s postfix on insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / enable postfix.service'. insserv: Forward service request to systemctl returned error status : 256 Elanor:~/Bugzilla # ./chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on Elanor:~/Bugzilla # ./chkconfig -s postfix off insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / disable postfix.service'. rm '/etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 Elanor:~/Bugzilla # ./chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. disabled postfix off Elanor:~/Bugzilla # ./chkconfig -s postfix on insserv: Note: sysvinit service postfix is shadowed by systemd postfix.service, Forwarding request to '/bin/systemctl --root / enable postfix.service'. ln -s '///lib/systemd/system/postfix.service' '///etc/systemd/system/multi-user.target.wants/postfix.service' insserv: Forward service request to systemctl returned error status : 256 Elanor:~/Bugzilla # ./chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. enabled postfix on Elanor:~/Bugzilla # The wrapping will spoil the text, but I added empty lines to clarify. I expanded the border of the edit window in Bugzilla, now it displays fine, but I'm afraid it will wrap when I save. I like the modified text, compared to the output in #0 it is clearer now. 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c12 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |ro@suse.com --- Comment #12 from Frederic Crozat <fcrozat@suse.com> 2012-02-09 09:46:57 UTC --- Rudy, could you review my patch and commit it to aaa_base if it is fine for you ? -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c Ruediger Oertel <ro@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|ro@suse.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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c13 Lars Müller <lmuelle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |ro@suse.com --- Comment #13 from Lars Müller <lmuelle@suse.com> 2012-03-06 12:52:29 CET --- Set needinfo from Rudi to get his attention. -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c14 Ruediger Oertel <ro@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|ro@suse.com |maintenance@opensuse.org --- Comment #14 from Ruediger Oertel <ro@suse.com> 2012-03-06 16:23:01 UTC --- code is in factory's aaa_base already since 9th of February. @maintenance: update for 12.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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c15 Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|maintenance@opensuse.org | --- Comment #15 from Dirk Mueller <dmueller@suse.com> 2012-03-13 13:29:11 CET --- yes, please go ahead. -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c16 Ruediger Oertel <ro@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #16 from Ruediger Oertel <ro@suse.com> 2012-03-14 00:05:37 UTC --- submitted. -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c17 --- Comment #17 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-03-14 02:00:11 CET --- This is an autogenerated message for OBS integration: This bug (732934) was mentioned in https://build.opensuse.org/request/show/109193 12.1 / aaa_base -- 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=732934 https://bugzilla.novell.com/show_bug.cgi?id=732934#c18 --- Comment #18 from Swamp Workflow Management <swamp@suse.de> 2012-04-02 11:11:06 UTC --- openSUSE-RU-2012:0454-1: An update that has four recommended fixes can now be installed. Category: recommended (low) Bug References: 725657,732934,738501,752422 CVE References: Sources used: openSUSE 12.1 (src): aaa_base-12.1-534.113.1, bash-4.2-1.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.
participants (1)
-
bugzilla_noreply@novell.com