chiark / gitweb /
sysv-generator: handle Provides: for non-virtual facility names
authorMichael Biebl <biebl@debian.org>
Mon, 5 Jan 2015 08:49:44 +0000 (09:49 +0100)
committerMichael Biebl <biebl@debian.org>
Wed, 7 Jan 2015 12:20:40 +0000 (13:20 +0100)
commitb7e7184634d573fb73143210962acce205f37f61
tree8c1393d768ea191523b83d39650789bf4852739f
parentc006826886d2796b10ecc09f88d460ca642d3c63
sysv-generator: handle Provides: for non-virtual facility names

The list of provided facility names as specified via Provides: in the
LSB header was originally implemented by adding those facilities to the
Names= property via unit_add_name().

In commit 95ed3294c632f5606327149f10cef1eb34422862 the internal SysV
support was replaced by a generator and support for parsing the Names=
option had been removed from the unit file parsing in v186.
As a result, Provides: for non-virtual facility was dropped when
introducing the sysv-generator.

Since quite a few SysV init scripts still use that functionality (at
least in distros like Debian which have a large body of SysV init
scripts), add back support by making those facility names available via
symlinks to the unit filename to ensure correct orderings between
SysV init scripts which use those facility names.

Bug-Debian: https://bugs.debian.org/774335
src/sysv-generator/sysv-generator.c