[systemd-devel] systemctl enable/disable of sysvinit services is busted v206

Colin Guthrie gmane at colin.guthr.ie
Mon Sep 9 00:48:55 PDT 2013


'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.

When the .service suffix is missed, you get the same errors as pasted
earlier:


enable gives "Failed to issue method call: No such file or directory"
  and
disable gives no output at all and silently fails.


Anyway, thanks for the pointer, it's certainly better even if it needs
polishing still!

Cheers

Col
-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list