From e8461023531de98ac6a49eff9d6ffeff6315249c Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 29 Oct 2014 05:10:48 -0700 Subject: logind: Support logind.conf.d directories in the usual search paths This makes it possible to drop in logind configuration snippets from a package or other configuration management mechanism. Add documentation to the header of /etc/logind.conf pointing the user at /etc/logind.conf.d/*.conf. Introduce a new helper, conf_parse_many, to parse configuration files in a search path. --- man/logind.conf.xml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'man/logind.conf.xml') diff --git a/man/logind.conf.xml b/man/logind.conf.xml index d37fcba58..0b35f51eb 100644 --- a/man/logind.conf.xml +++ b/man/logind.conf.xml @@ -44,18 +44,41 @@ logind.conf - Login manager configuration file + Login manager configuration files /etc/systemd/logind.conf + /etc/systemd/logind.conf.d/*.conf + /run/systemd/logind.conf.d/*.conf + /usr/lib/systemd/logind.conf.d/*.conf Description - This file configures various parameters of the systemd login manager, systemd-logind.service8. - + These files configure various parameters of the systemd login manager, systemd-logind.service8. + + Each configuration file shall be named in the style of + filename.conf. + Files in /etc/ override files with the + same name in /usr/lib/ and + /run/. Files in + /run/ override files with the same name in + /usr/lib/. Packages should install their + configuration files in /usr/lib/. Files in + /etc/ are reserved for the local + administrator, who may use this logic to override the + configuration files installed by vendor packages. All + configuration files are sorted by their filename in + lexicographic order, regardless of which of the directories + they reside in. If multiple files specify the same option, the + entry in the file with the lexicographically latest name will + be applied; entries in any logind.conf.d + file override entries in + /etc/systemd/logind.conf. It is + recommended to prefix all filenames with a two-digit number and + a dash, to simplify the ordering of the files. -- cgit v1.2.3