[Bug 804273] New: insserv: no longer functions for all services
https://bugzilla.novell.com/show_bug.cgi?id=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c0 Summary: insserv: no longer functions for all services Classification: openSUSE Product: openSUSE 12.3 Version: RC 1 Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: lnussel@suse.com ReportedBy: jengelh@inai.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- The default openSUSE install has sshd turned off. So far, so normal. But when I try to execute `insserv sshd`, the /etc/init.d/* links for sshd are created, but on reboot, sshd is still not started. In openSUSE 12.2, `insserv sshd` would say: insserv: Note: sysvinit service sshd is shadowed by systemd sshd.service, Forwarding request to '/bin/systemctl --no-reload enable sshd.service'. ln -s '/lib/systemd/system/sshd.service' '/etc/systemd/system/multi-user.target.wants/sshd.service' and would create /etc/systemd/system/multi-user.target.wants/sshd.service. In openSUSE 12.3, insserv no longer gives any output nor creates the symlink in /etc/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=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c1 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Ludwig Nussel <lnussel@suse.com> 2013-02-18 14:34:24 CET --- That's expected. insserv is only a stub that takes care of sysv. Actually openssh should not include the sysv script anymore if it has a service file. To enable service files use systemctl (or chkconfig). -- 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=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c2 --- Comment #2 from Jan Engelhardt <jengelh@inai.de> 2013-02-18 14:37:08 CET --- But `insserv sshd` is so much shorter than `systemctl enable sshd.service` -- and it worked in 12.2, so it's a regression. I would also like to point out https://plus.google.com/116897159250746362191/posts/Wg5iNuD6khN where RedHat's own Tomas Tomecek finds `systemctl start blah.service` too long - and SUSE has had (functional, even) `rcblah start` for most pre-systemd services. -- 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=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c3 --- Comment #3 from Ludwig Nussel <lnussel@suse.com> 2013-02-18 15:06:10 CET --- Well, I totally agree :-) Unfortunately insserv is a too low level implementation detail of sysv to do the abstraction for systemd. It caused trouble that's why it got replaced with this simple perl script. "chkconfig sshd on" does what you want. The rc* symlinks still work: http://lists.opensuse.org/opensuse-factory/2012-07/msg00066.html -- 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=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c4 --- Comment #4 from Jan Engelhardt <jengelh@inai.de> 2013-02-18 16:04:21 CET --- But what does sysv matter here? Just have something like this at the start of insserv: #!/bin/sh foo=0; for loc in /etc/systemd/system /usr/lib/systemd/system /lib/systemd/system; do if [ -e "/usr/lib/systemd/system/$1.service" ]; then systemctl enable "$1.service"; foo=1 fi; done; if [ "$foo" = "0" ]; then # sysv gook 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.
https://bugzilla.novell.com/show_bug.cgi?id=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c5 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |coolo@suse.com Resolution|WONTFIX | --- Comment #5 from Ludwig Nussel <lnussel@suse.com> 2013-02-19 09:13:20 CET --- I know this looks temptingly simple. I bet insserv started with just that and ended up lots of fragile hacks. So I will not add that. Adding a warning that the init script is shadowed by a systemd service file together with the hint to use chkconfig would be ok IMO. -- 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=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c6 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #6 from Ludwig Nussel <lnussel@suse.com> 2013-07-05 09:39:15 CEST --- Warning added in Factory. -- 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=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c7 --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-07-05 10:00:22 CEST --- This is an autogenerated message for OBS integration: This bug (804273) was mentioned in https://build.opensuse.org/request/show/182272 Factory / insserv-compat -- 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=804273 https://bugzilla.novell.com/show_bug.cgi?id=804273#c Jan Engelhardt <jengelh@inai.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED -- 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