]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/systemctl/systemctl.c
core: rework generator dir logic, move the dirs into LookupPaths structure
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Feb 2016 14:31:33 +0000 (15:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:29 +0000 (13:43 +0200)
commita3c4eb07106b29f7366113764cb1c8c4d6dd5646
tree61045467e8575207dbe409d642f5ea9a1a3728d9
parent4447e799be18b255b11844c64b834714f4da54f8
core: rework generator dir logic, move the dirs into LookupPaths structure

A long time ago – when generators where first introduced – the directories for
them were randomly created via mkdtemp(). This was changed later so that they
use fixed name directories now. Let's make use of this, and add the genrator
dirs to the LookupPaths structure and into the unit file search path maintained
in it. This has the benefit that the generator dirs are now normal part of the
search path for all tools, and thus are shown in "systemctl list-unit-files"
too.
13 files changed:
src/core/dbus-manager.c
src/core/load-dropin.c
src/core/load-dropin.h
src/core/load-fragment.c
src/core/manager.c
src/core/manager.h
src/shared/install.c
src/shared/install.h
src/shared/path-lookup.c
src/shared/path-lookup.h
src/systemctl/systemctl.c
src/sysv-generator/sysv-generator.c
src/test/test-path-lookup.c