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

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Jan 23 10:44:31 PST 2015

On 23/01/15 17:52, Lennart Poettering wrote:
> On Fri, 23.01.15 12:27, Cristian Rodríguez (crrodriguez at opensuse.org) wrote:
>> El 23/01/15 a las 10:31, Lennart Poettering escribió:
>>> The rc-local generator only exists to add compat support for those
>>> systems where it never was a sysvinit script anyway...
>> They are not init scripts though. but plain shell scripts with no dependency
>> information. they are installed in /etc/init.d, therefore we end with units
>> generated by both the sysv-generator and the rc-local generator.
> Hmm? Are you talking about Debian or Suse now? I kinda assumed that if
> Debian places it in /etc/init.d, that it is a proper sysvinit script...

In Debian, /etc/init.d/rc.local is a sysvinit script with LSB init info.
It is a normal sysvinit script, except that it has Required-Start: $all
so that it will be sequenced after all other init scripts.

It runs /etc/rc.local, which is a simple shell script with no dependency
magic. If a sysadmin has not customized /etc/rc.local, it only contains
some comments and "exit 0".


More information about the systemd-devel mailing list