[Bug 852312] New: Error "The unit files have no [Install] section" using "systemctl enable named.service"
https://bugzilla.novell.com/show_bug.cgi?id=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c0 Summary: Error "The unit files have no [Install] section" using "systemctl enable named.service" Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: joerg_diederich@freenet.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 When I try to enable the named service using the command "systemctl enable named.service" I get the error message: The unit files have no [Install] section. They are not meant to be enabled using systemctl. Possible reasons for having this kind of units are: 1) A unit may be statically enabled by being symlinked from another unit's wants/ or .requires/ directory. 2) A unit's purpose may be to act as a helper for some other unit which has a requirement dependency on it. 3) A unit may be started when needed via activation (socket, path, timer, D-Bus, udev, scripted systemctl call, ...). Reproducible: Always Steps to Reproduce: systemctl enable named.service Actual Results: Error messages (see Details) Expected Results: The service should be enabled without complaints. -- 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=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c1 --- Comment #1 from Joerg Diederich <joerg_diederich@freenet.de> 2013-11-28 20:32:21 UTC --- Same issue using "systemctl enable ntp.service". It seems to be a problem with systemctl in combination with legacy init 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=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |systemd-maintainers@suse.de |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=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c2 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |werner@suse.com Resolution| |WORKSFORME --- Comment #2 from Dr. Werner Fink <werner@suse.com> 2013-11-29 07:51:34 UTC --- What is wrong with insserv named or chkconfig named on beside this linux /suse/werner> sudo -i linux:~ # systemctl enable raw.service raw.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig raw on The unit files have no [Install] section. They are not meant to be enabled using systemctl. Possible reasons for having this kind of units are: 1) A unit may be statically enabled by being symlinked from another unit's .wants/ or .requires/ directory. 2) A unit's purpose may be to act as a helper for some other unit which has a requirement dependency on it. 3) A unit may be started when needed via activation (socket, path, timer, D-Bus, udev, scripted systemctl call, ...). you may see the third and fourth line with raw.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig raw on -- 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=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c3 --- Comment #3 from Joerg Diederich <joerg_diederich@freenet.de> 2013-11-29 12:57:10 UTC --- First of all I thought opensuse is going the direction to use systemd instead of sysinit and systemctl is the new way to control the startup scripts. This works fine with opensuse 12.3: # opensuse 12.3: root:~ # systemctl enable named.service named.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig named on root:~ # # opensuse 13.1: root:/install/Linux/SuSE_13.1/pchafjd # systemctl enable named.service named.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig named on The unit files have no [Install] section. They are not meant to be enabled using systemctl. Possible reasons for having this kind of units are: 1) A unit may be statically enabled by being symlinked from another unit's .wants/ or .requires/ directory. 2) A unit's purpose may be to act as a helper for some other unit which has a requirement dependency on it. 3) A unit may be started when needed via activation (socket, path, timer, D-Bus, udev, scripted systemctl call, ...). Do you notice the difference? Why are things getting worse here? I have a bunch of installation scripts, which were upgraded to use systemctl. Do I now have to change those scripts again introducing some logic to decide whether I want to control a systemd native service or a legacy one? -- 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=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2013-11-29 13:06:04 UTC --- (In reply to comment #3) This is what upstream does ... why do you think I should change that? Please provide a reason for doing that. If you think this is a bug then please report it upstream: https://bugs.freedesktop.org/enter_bug.cgi?product=systemd as then this will be fixed without maintaining a further patch. Nevertheless I do not see an error but a warning that system adminstrator should use for LSB/SysV boot scripts the LSB/SysV interface. I guess therefore that a bug report at the above site will not be successful but this is a guess only. -- 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=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c5 --- Comment #5 from Dr. Werner Fink <werner@suse.com> 2013-11-29 13:08:13 UTC --- To make it clear: I agree with you that such messages are dissatisfactory but this is not a reason to change upstream code. -- 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=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c6 --- Comment #6 from Joerg Diederich <joerg_diederich@freenet.de> 2013-11-29 13:30:42 UTC --- Just to clarify my point of view: "systemctl enable" works fine in opensuse 12.3 for old style init scripts as well without any annoying messages. In opensuse 13.1 you get these messages pretending making you think the command failed, which is, by the way, to true. This change in behaviour makes me think that systemctl is kind of broken in opensuse 13.1. Or put it the other way round: this is not a request for a new feature but to undo a change in upstream which makes things worse. For me as a normal user it's hard to decide who is to blame (the distributor or upstream). If nobody here can fix it then close this bug 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=852312 https://bugzilla.novell.com/show_bug.cgi?id=852312#c7 --- Comment #7 from Frederic Crozat <fcrozat@suse.com> 2013-12-06 15:27:15 UTC --- seems a duplicate of 818044 -- 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