core: change top-level drop-in from -.service.d to service.d

System Internals / systemd - Anita Zhang [gmail.com] - 7 November 2019 07:34 EST

Discussed in #13743, the -.service semantic conflicts with the existing root mount and slice names, making this feature not uniformly extensible to all types. Change the name to be .d instead.

Updating to this format also extends the top-level dropin to unit types.

3e1db806b0 core: change top-level drop-in from -.service.d to service.d
NEWS | 7 +++----
man/systemd.service.xml | 13 -------------
man/systemd.special.xml | 9 ---------
man/systemd.unit.xml | 11 ++++++++---
src/basic/special.h | 4 ----
src/basic/unit-name.c | 30 ------------------------------
src/basic/unit-name.h | 2 --
src/core/service.c | 5 -----
src/shared/dropin.c | 22 ++++++++++++----------
src/test/test-unit-name.c | 19 -------------------
test/TEST-15-DROPIN/test-dropin.sh | 8 ++++----
11 files changed, 27 insertions(+), 103 deletions(-)

Upstream: github.com


  • Share