[systemd-devel] 'is-enabled' supported for legacy sysvinit scripts?
Jon Severinsson
jon at severinsson.net
Mon Apr 13 06:18:55 PDT 2015
måndagen den 13 april 2015 07:26:14 skrev Nusenu:
> Hi Andrei,
>
> thanks for your reply.
>
> > systemctl should still support it if your system supports chkconfig
> > to manage initscripts.
>
> chkconfig was indeed not installed, but even after installing it, the
>
> is-enabled command output and return codes do not change:
> >> Output in such cases:
> >>
> >> "Failed to get unit file state for FOO.service: No such file or director
> >> y"
>
> Is this considered a bug?
>
> thanks,
> Nusenu
>
> testing on:
> Debian 8 (chkconfig installed) with systemd 215-14 and
> Ubuntu 15.04 with systemd 219-7ubuntu1 (no chkconfig available)
Debian patches the systemd legacy sysv support to use update-rc.d (the Debian-
native equivalent) instead of chkconfig, but update-rc.d does not have a is-
enabled feature, so is-enabled will not work on legacy init scripts in the
Debian build of systemd...
More information about the systemd-devel
mailing list