diff --git a/man/systemd-sysctl.service.xml b/man/systemd-sysctl.service.xml index 36f446dcc7..82b2ec71bb 100644 --- a/man/systemd-sysctl.service.xml +++ b/man/systemd-sysctl.service.xml @@ -110,6 +110,31 @@ + + + + Before applying the loaded sysctl settings, write them to /run/sysctl.d/ + using the specified filename. If the filename does not end with .conf, the + suffix is appended. This option requires one or more positional arguments. May be combined with + . This may be useful for creating runtime sysctl configuration files or + overriding existing sysctl configuration files. + + + + + + + + + Before loading and applying the sysctl settings, removes the specified sysctl configuration + file under /run/sysctl.d/. If the filename does not end with + .conf, the suffix is appended. This may be useful for removing configuration + files created by . + + + + + @@ -186,6 +211,26 @@ kernel.core_pattern = |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t %P %I of preference. + + Disable IPv6 on an interface and save the specified setting + + # /usr/lib/systemd/systemd-sysctl --save=99-disable-ipv6-foo - <<EOF +net.ipv6.conf.foo.disable_ipv6=1 +EOF + + This disables IPv6 on the network interface foo, and creates + /run/sysctl.d/99-disable-ipv6-foo.conf. + + + + Remove a runtime sysctl configuration file + + # /usr/lib/systemd/systemd-sysctl --revert=99-disable-ipv6-foo --prefix=/net/ipv6/conf/foo + + This removes /run/sysctl.d/99-disable-ipv6-foo.conf, and applies the + remaining sysctl settings for the network interface foo. + + See sysctl8 for various ways to directly apply sysctl settings.