[systemd-devel] [PATCH 2/3] conf-parser: add "ignored sections" parameter

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed May 1 18:54:34 PDT 2013


On Thu, May 02, 2013 at 02:17:13AM +0200, Tom Gundersen wrote:
> On Wed, May 1, 2013 at 2:53 PM, Zbigniew Jędrzejewski-Szmek
> <zbyszek at in.waw.pl> wrote:
> > config_parse will ignore settings specified in 'ignored_sections'. The purpose
> > is being able to share a config file between two different modules (e.g. systemd
> > and systemd-sleep) without both understanding all sections. Each new section
> > has only to be added to either 'sections' or 'ignored_sections' in all modules
> > which parse the same config file.
> 
> What's the reason not to instead split the config files up into
> smaller ones? E.g. /etc/systemd/sleep.conf. If the contents is so
> different from the rest of systemd.conf that 'ignored_sections' is
> necessary, this seems like a natural choice. Am I missing something?
Yeah, that's an option too. I thought that a file with (usually) one
line is a bit overkill. I'm definitely not married to the idea of
"ignored_sections".

Zbyszek


More information about the systemd-devel mailing list