[systemd-devel] [PATCH v4 1/2] Move handling of sysv initscripts to a generator

Lennart Poettering lennart at poettering.net
Fri Jul 4 03:35:11 PDT 2014


On Fri, 04.07.14 13:50, Alexey Shabalin (a.shabalin at gmail.com) wrote:

> 
> 2014-06-01 1:29 GMT+04:00 Thomas H.P. Andersen <phomes at gmail.com>:
> > From: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
> >
> > Reuses logic from service.c and the rc-local generator.
> >
> > Note that this drops reading of chkconfig entirely. It also drops reading
> > runlevels from the LSB headers. The runlevels were only used to check for
> > runlevels outside of the normal 1-5 range and then add special dependencies
> > and settings. Special runlevels were dropped in the past so it seemed to be
> > unused code.
> >
> > The generator does not know about non-generated units with a value set with
> > SysVStartPriority=. These are therefor not taken into account when converting
> > start priority to before/after.
> 
> Hello Thomas.
> Own Linux distributive support both init system: sysv and systemd.
> Package is contain sysv-initscript and systemd-unit(not all packages).
> It would be good for me to skip generate unit files for exist native
> unit files or aliases.

Well, the idea is that native unit files are generated for all sysv
scripts, but that native unit files always take precedence. This is what
is already implemented, and which should just work.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list