[systemd-devel] systemctl enable/disable of sysvinit services is busted v206
Lennart Poettering
lennart at poettering.net
Mon Sep 9 17:19:12 PDT 2013
On Mon, 09.09.13 08:48, Colin Guthrie (gmane at colin.guthr.ie) wrote:
> 'Twas brillig, and Andrey Borzenkov at 08/09/13 11:27 did gyre and gimble:
> > В Sun, 08 Sep 2013 11:23:33 +0100
> > Colin Guthrie <gmane at colin.guthr.ie> пишет:
> >
> >> Hi,
> >>
> >> I noticed from a user bug report that systemctl enable/disable on
> >> sysvinit services (i.e. redirection to chkconfig) is broken.
> >>
> >> I can't see anything in master that would fix this, so just wondering if
> >> it's a know issue before I poke at it further...
> >>
> >
> > Could it be missing build requires?
> >
> > commit 77e68fa2f0bd018bab2621a31919bfaa6a6b0a35
> > Author: Lennart Poettering <lennart at poettering.net>
> > Date: Fri Jan 4 22:32:31 2013 +0100
> >
> > systemctl: enable chkconfig compat only if chkconfig is found rather than based on distro
>
>
> Oh could be yeah...
> <tests>
> ... and yes, this seems to be the case.
>
> However, there are some discrepancies. It requires the .service suffix
> to work properly, unlike native services which do not.
Indeed. Sounds like something worthy to be fixed. I figure we never
noticed this on Fedora because so few sysv scripts remain now, and they
are exotic...
Anyway, happy to take a patch. It probably just requires shifting around
the first lines in enable_unit() in systemctl.c a bit, so that we mangle
the names first, and then pass things to chkconfig... As I don't really
have any sysv scripts installed anymore, I kinda rely on a patch for
this...
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list