man-pages/man8/systemd-sysctl.service.8.html
2021-03-31 01:06:50 +01:00

227 lines
4.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SYSTEMD-SYSCTL.SERVICE</TITLE>
</HEAD><BODY>
<H1>SYSTEMD-SYSCTL.SERVICE</H1>
Section: systemd-sysctl.service (8)<BR>Updated: <BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
systemd-sysctl.service, systemd-sysctl - Configure kernel parameters at boot
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>/lib/systemd/systemd-sysctl</B> [OPTIONS...] [<I>CONFIGFILE</I>...]
</DL>
<P>
<DD>systemd-sysctl.service
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
systemd-sysctl.service
is an early boot service that configures
<B><A HREF="/cgi-bin/man/man2html?8+sysctl">sysctl</A></B>(8)
kernel parameters by invoking
<B>/lib/systemd/systemd-sysctl</B>.
<P>
When invoked with no arguments,
<B>/lib/systemd/systemd-sysctl</B>
applies all directives from configuration files listed in
<B><A HREF="/cgi-bin/man/man2html?5+sysctl.d">sysctl.d</A></B>(5). If one or more filenames are passed on the command line, only the directives in these files are applied.
<P>
In addition,
<B>--prefix=</B>
option may be used to limit which sysctl settings are applied.
<P>
See
<B><A HREF="/cgi-bin/man/man2html?5+sysctl.d">sysctl.d</A></B>(5)
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.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
<B>--prefix=</B>
<DL COMPACT><DT id="2"><DD>
Only apply rules with the specified prefix.
</DL>
<P>
<B>--cat-config</B>
<DL COMPACT><DT id="3"><DD>
Copy the contents of config files to standard output. Before each file, the filename is printed as a comment.
</DL>
<P>
<B>--no-pager</B>
<DL COMPACT><DT id="4"><DD>
Do not pipe output into a pager.
</DL>
<P>
<B>-h</B>, <B>--help</B>
<DL COMPACT><DT id="5"><DD>
Print a short help text and exit.
</DL>
<P>
<B>--version</B>
<DL COMPACT><DT id="6"><DD>
Print a short version string and exit.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLES</H2>
<P>
<B>Example&nbsp;1.&nbsp;Reset all sysctl settings</B>
<P>
<DL COMPACT><DT id="7"><DD>
<PRE>
systemctl restart systemd-sysctl
</PRE>
</DL>
<P>
<B>Example&nbsp;2.&nbsp;View coredump handler configuration</B>
<P>
<DL COMPACT><DT id="8"><DD>
<PRE>
# sysctl kernel.core_pattern
kernel.core_pattern = |/libexec/abrt-hook-ccpp %s %c %p %u %g %t %P %I
</PRE>
</DL>
<P>
<B>Example&nbsp;3.&nbsp;Update coredump handler configuration</B>
<P>
<DL COMPACT><DT id="9"><DD>
<PRE>
# /lib/systemd/systemd-sysctl --prefix kernel.core_pattern
</PRE>
</DL>
<P>
This searches all the directories listed in
<B><A HREF="/cgi-bin/man/man2html?5+sysctl.d">sysctl.d</A></B>(5)
for configuration files and writes
/proc/sys/kernel/core_pattern.
<P>
<B>Example&nbsp;4.&nbsp;Update coredump handler configuration according to a specific file</B>
<P>
<DL COMPACT><DT id="10"><DD>
<PRE>
# /lib/systemd/systemd-sysctl 50-coredump.conf
</PRE>
</DL>
<P>
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.
<P>
See
<B><A HREF="/cgi-bin/man/man2html?8+sysctl">sysctl</A></B>(8)
for various ways to directly apply sysctl settings.
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?5+sysctl.d">sysctl.d</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?8+sysctl">sysctl</A></B>(8),
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="14"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="15"><A HREF="#lbAF">EXAMPLES</A><DD>
<DT id="16"><A HREF="#lbAG">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:17 GMT, March 31, 2021
</BODY>
</HTML>