[systemd-devel] [PATCH] sysv-generator: Do not generate units for files handled by rc-local generator

Lennart Poettering lennart at poettering.net
Fri Jan 23 09:51:23 PST 2015

On Fri, 23.01.15 15:57, Michael Biebl (mbiebl at gmail.com) wrote:

> 2015-01-23 14:32 GMT+01:00 Lennart Poettering <lennart at poettering.net>:
> > On Fri, 23.01.15 04:24, Michael Biebl (mbiebl at gmail.com) wrote:
> >
> >> If distros still ship such a rc.local sysv init script, shouldn't they
> >> rather symlink that to
> >> the native rc-local.service? Sounds like the better alternative to me.
> >> Or alternatively, mask that service.
> >>
> >> E.g in Debian we have /etc/init.d/rc.local and ship a
> >> /lib/systemd/system/rc.local.service -> rc-local.service
> >> symlink in the systemd package.
> > I'd recommend not shipping the rc-local generator at all in Debian
> > then. It was simply compat for some crappy logic where Fedora was
> > executing two special scripts, that were not sysv during bootup and
> > shutdown.
> Hm, you're probably right.
> I guess we could just statically enable rc-local.service in
> multi-user.target.wants and drop rc-local-generator.

I'd even remove rc-local.service from Debian. If this is a normal
sysvinit script, treat it as such, and let sysv-generator do its deed
on it. 

Given that you don't have the shutdown counterpart like Fedora has you
are then completely safe, without any special magic that we needed for


Lennart Poettering, Red Hat

More information about the systemd-devel mailing list