From: Josh Triplett Date: Sat, 29 Nov 2014 09:06:20 +0000 (-0800) Subject: journald: Support journald.conf.d directories in the usual search paths X-Git-Tag: v218~202 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=a9edaeff8481573764288ccf7e433a95b6dc7c03 journald: Support journald.conf.d directories in the usual search paths --- diff --git a/Makefile-man.am b/Makefile-man.am index f025be0b3..e0c15fa39 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -148,6 +148,7 @@ MANPAGES_ALIAS += \ man/SD_NOTICE.3 \ man/SD_WARNING.3 \ man/init.1 \ + man/journald.conf.d.5 \ man/poweroff.8 \ man/reboot.8 \ man/sd_id128_equal.3 \ @@ -256,6 +257,7 @@ man/SD_LISTEN_FDS_START.3: man/sd_listen_fds.3 man/SD_NOTICE.3: man/sd-daemon.3 man/SD_WARNING.3: man/sd-daemon.3 man/init.1: man/systemd.1 +man/journald.conf.d.5: man/journald.conf.5 man/poweroff.8: man/halt.8 man/reboot.8: man/halt.8 man/sd_id128_equal.3: man/sd-id128.3 @@ -416,6 +418,9 @@ man/SD_WARNING.html: man/sd-daemon.html man/init.html: man/systemd.html $(html-alias) +man/journald.conf.d.html: man/journald.conf.html + $(html-alias) + man/poweroff.html: man/halt.html $(html-alias) diff --git a/man/journald.conf.xml b/man/journald.conf.xml index 5538b968e..bf0b944ea 100644 --- a/man/journald.conf.xml +++ b/man/journald.conf.xml @@ -22,7 +22,8 @@ along with systemd; If not, see . --> - + journald.conf systemd @@ -44,22 +45,29 @@ journald.conf - Journal service configuration file + journald.conf.d + Journal service configuration files /etc/systemd/journald.conf + /etc/systemd/journald.conf.d/*.conf + /run/systemd/journald.conf.d/*.conf + /usr/lib/systemd/journald.conf.d/*.conf Description - This file configures various parameters of the + These files configure various parameters of the systemd journal service, systemd-journald.service8. + + + Options diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 9ec425d2d..3bee18b35 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -1351,10 +1351,11 @@ static int server_parse_proc_cmdline(Server *s) { static int server_parse_config_file(Server *s) { assert(s); - return config_parse(NULL, "/etc/systemd/journald.conf", NULL, - "Journal\0", - config_item_perf_lookup, journald_gperf_lookup, - false, false, true, s); + return config_parse_many("/etc/systemd/journald.conf", + CONF_DIRS_NULSTR("systemd/journald.conf"), + "Journal\0", + config_item_perf_lookup, journald_gperf_lookup, + false, s); } static int server_dispatch_sync(sd_event_source *es, usec_t t, void *userdata) { diff --git a/src/journal/journald.conf b/src/journal/journald.conf index 2073f1bf2..29bdf8f18 100644 --- a/src/journal/journald.conf +++ b/src/journal/journald.conf @@ -5,6 +5,9 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # +# You can override the directives in this file by creating files in +# /etc/systemd/journald.conf.d/*.conf. +# # See journald.conf(5) for details [Journal]