[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 15:34:31 PST 2015


On Fri, 23.01.15 18:44, Simon McVittie (simon.mcvittie at collabora.co.uk) wrote:

> 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".

I see. In this case I would remove all of systemd's special rc-local
magic from the package and just make use of the normal sysvinit
support for it.

We can even add a compile time option to systemd upstream that
disables this part without removing all of sysvinit support.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list