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

Michael Biebl mbiebl at gmail.com
Fri Jan 23 04:27:04 PST 2015


2015-01-23 10:17 GMT+01:00 Colin Guthrie <gmane at colin.guthr.ie>:
> Michael Biebl wrote on 23/01/15 03:24:
>> and ship a
>> /lib/systemd/system/rc.local.service -> rc-local.service
>> symlink in the systemd package.
>
> Hmm, doesn't that break the
> /usr/lib/systemd/system-generators/systemd-rc-local-generator logic? Or
> do you not ship that in Debian?
>
> The whole point of this generator is to look for /etc/init.d/rc.local
> and check that it's executable and then add it in with appropriate deps
> so it runs at the "correct" time (i.e. quite late)
>
> Maybe I'm missing something that the above trick would achieve?

This trick achieves two things:
- It avoids that a rc.local.service file is generated by the sysv-generator
- It avoids that the rc.local.service is started (as a LSB service),
since we want this to be done by the native service.

afaics, /lib/systemd/system/rc-local.service always exists, the
rc-local generator only does the symlink into the
multi-user.target.wants directory.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list