From 7382a3cc232a0b60f1cd4604ce8fa9ae79f654e9 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sat, 2 Apr 2016 11:05:11 -0400 Subject: man: describe how to reload sysctl configuration Also fixes option name (s/--path/--prefix/). --- man/systemd-coredump.xml | 9 ++++++ man/systemd-sysctl.service.xml | 69 ++++++++++++++++++++++++++++++++++++------ 2 files changed, 68 insertions(+), 10 deletions(-) (limited to 'man') diff --git a/man/systemd-coredump.xml b/man/systemd-coredump.xml index 0d3115094c..aa352448b2 100644 --- a/man/systemd-coredump.xml +++ b/man/systemd-coredump.xml @@ -91,6 +91,15 @@ may be used to list and extract coredumps or load them in gdb1. + + The coredump helper is invoked anew each time. Therefore, any configuration + changes will take effect on the invocation of systemd-coredump. + If the sysctl configuration is modified, it must be updated in the kernel before + it takes effect, see + systemd-sysctl8 + and + sysctl8. + diff --git a/man/systemd-sysctl.service.xml b/man/systemd-sysctl.service.xml index 9027ff0f3f..686b2cdef4 100644 --- a/man/systemd-sysctl.service.xml +++ b/man/systemd-sysctl.service.xml @@ -62,24 +62,29 @@ systemd-sysctl.service is an early boot service that configures sysctl8 - kernel parameters. + kernel parameters by invoking /usr/lib/systemd/systemd-sysctl. - If invoked with no arguments, it applies all directives from - all configuration files in - sysctl.d5 - are searched for a matching file. If one or more filenames are passed on - the command line, only the directives in these files are applied. - + When invoked with no arguments, /usr/lib/systemd/systemd-sysctl applies + all directives from configuration files listed in + sysctl.d5. + If one or more filenames are passed on the command line, only the directives in these files are + applied. + + In addition, option may be used to limit which sysctl + settings are applied. See sysctl.d5 - for information about the configuration of this service. + for information about the configuration of sysctl settings. After sysctl configuration is + changed on disk, it must be written to the files in /proc/sys before it + takes effect. It is possible to update specific settings, or simply to reload all configuration, + see Examples below. Options - - + + Only apply rules with the specified prefix. @@ -91,6 +96,50 @@ + + Examples + + + Reset all sysctl settings + + systemctl restart systemd-sysctl + + + + View coredump handler configuration + + # sysctl kernel.core_pattern +kernel.core_pattern = |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t %P %I + + + + + Update coredump handler configuration + + # /usr/lib/systemd/systemd-sysctl --prefix kernel.core_pattern + + This searches all the directories listed in + sysctl.d5 + for configuration files and writes /proc/sys/kernel/core_pattern. + + + + Update coredump handler configuration according to a specific file + + # /usr/lib/systemd/systemd-sysctl 50-coredump.conf + + This applies all the settings found in 50-coredump.conf. + Either /etc/sysctl.d/50-coredump.conf, or + /run/sysctl.d/50-coredump.conf, or + /usr/lib/sysctl.d/50-coredump.conf will be used, in the order + of preference. + + + See + sysctl8 + for various ways to directly apply sysctl settings. + + See Also -- cgit v1.2.3-54-g00ecf