[systemd-devel] logind.conf.d?

Lennart Poettering lennart at poettering.net
Tue May 20 10:12:02 PDT 2014


On Fri, 16.05.14 12:58, Josh Triplett (josh at joshtriplett.org) wrote:

> I'd like to add support for /etc/systemd/logind.conf.d, parsed after
> /etc/systemd/logind.conf.  My specific use case: I'd like to be able to
> create a simple configuration package I can install on my systems that
> changes the logind configuration by dropping in a snippet, rather than
> hand-editing logind.conf.
> 
> Does that sound like a reasonable addition?  Happy to write the patch if
> so.

Hum, so I must say that I am not enthusiastic about the idea, but I do
see your usecase, and I can't come up with a reason to reject such a
patch...

Hence, go ahead, I'll merge a good patch for it.

Please try to add this generically to conf-parser.c, but make it
optional, so that can disable this for example for unit files, where we
actually want to keep track of the drop-ins (and already do that) and
thus wouldnt use the generic version anyway... Or in other words, if we
add this for logind, we need to add it for journald, timesyncd,
... too...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list