1SYSTEMD-SYSCTL.SERVICE(8)   systemd-sysctl.service   SYSTEMD-SYSCTL.SERVICE(8)
2
3
4

NAME

6       systemd-sysctl.service, systemd-sysctl - Configure kernel parameters at
7       boot
8

SYNOPSIS

10       /usr/lib/systemd/systemd-sysctl [OPTIONS...] [CONFIGFILE...]
11
12       systemd-sysctl.service
13

DESCRIPTION

15       systemd-sysctl.service is an early boot service that configures
16       sysctl(8) kernel parameters by invoking
17       /usr/lib/systemd/systemd-sysctl.
18
19       When invoked with no arguments, /usr/lib/systemd/systemd-sysctl applies
20       all directives from configuration files listed in sysctl.d(5). If one
21       or more filenames are passed on the command line, only the directives
22       in these files are applied.
23
24       In addition, --prefix= option may be used to limit which sysctl
25       settings are applied.
26
27       See sysctl.d(5) for information about the configuration of sysctl
28       settings. After sysctl configuration is changed on disk, it must be
29       written to the files in /proc/sys/ before it takes effect. It is
30       possible to update specific settings, or simply to reload all
31       configuration, see Examples below.
32

OPTIONS

34       --prefix=
35           Only apply rules with the specified prefix.
36
37       --strict=
38           Always return non-zero exit code on failure (including invalid
39           sysctl variable name and insufficient permissions), unless the
40           sysctl variable name is prefixed with a "-" character.
41
42       --cat-config
43           Copy the contents of config files to standard output. Before each
44           file, the filename is printed as a comment.
45
46       --no-pager
47           Do not pipe output into a pager.
48
49       -h, --help
50           Print a short help text and exit.
51
52       --version
53           Print a short version string and exit.
54

CREDENTIALS

56       systemd-sysctl supports the service credentials logic as implemented by
57       ImportCredential=/LoadCredential=/SetCredential= (see systemd.exec(1)
58       for details). The following credentials are used when passed in:
59
60       sysctl.extra
61           The contents of this credential may contain additional lines to
62           operate on. The credential contents should follow the same format
63           as any other sysctl.d/ drop-in configuration file. If this
64           credential is passed it is processed after all of the drop-in files
65           read from the file system. The settings configured in the
66           credential hence take precedence over those in the file system.
67
68       Note that by default the systemd-sysctl.service unit file is set up to
69       inherit the "sysctl.extra" credential from the service manager.
70

EXAMPLES

72       Example 1. Reset all sysctl settings
73
74           systemctl restart systemd-sysctl
75
76       Example 2. View coredump handler configuration
77
78           # sysctl kernel.core_pattern
79           kernel.core_pattern = |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t %P %I
80
81       Example 3. Update coredump handler configuration
82
83           # /usr/lib/systemd/systemd-sysctl --prefix kernel.core_pattern
84
85       This searches all the directories listed in sysctl.d(5) for
86       configuration files and writes /proc/sys/kernel/core_pattern.
87
88       Example 4. Update coredump handler configuration according to a
89       specific file
90
91           # /usr/lib/systemd/systemd-sysctl 50-coredump.conf
92
93       This applies all the settings found in 50-coredump.conf. Either
94       /etc/sysctl.d/50-coredump.conf, or /run/sysctl.d/50-coredump.conf, or
95       /usr/lib/sysctl.d/50-coredump.conf will be used, in the order of
96       preference.
97
98       See sysctl(8) for various ways to directly apply sysctl settings.
99

SEE ALSO

101       systemd(1), sysctl.d(5), sysctl(8)
102
103
104
105systemd 254                                          SYSTEMD-SYSCTL.SERVICE(8)
Impressum