File: systemd-sysctl.service.8

package info (click to toggle)
manpages-de 2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 71,404 kB
  • sloc: sh: 1,059; makefile: 71; python: 64; perl: 37; sed: 11
file content (147 lines) | stat: -rw-r--r-- 3,823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
'\" t
.TH "SYSTEMD\-SYSCTL\&.SERVICE" "8" "" "systemd 241" "systemd-sysctl.service"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
systemd-sysctl.service, systemd-sysctl \- Configure kernel parameters at boot
.SH "SYNOPSIS"
.HP \w'\fB/usr/lib/systemd/systemd\-sysctl\fR\ 'u
\fB/usr/lib/systemd/systemd\-sysctl\fR [OPTIONS...] [\fICONFIGFILE\fR...]
.PP
systemd\-sysctl\&.service
.SH "DESCRIPTION"
.PP
systemd\-sysctl\&.service
is an early boot service that configures
\fBsysctl\fR(8)
kernel parameters by invoking
\fB/usr/lib/systemd/systemd\-sysctl\fR\&.
.PP
When invoked with no arguments,
\fB/usr/lib/systemd/systemd\-sysctl\fR
applies all directives from configuration files listed in
\fBsysctl.d\fR(5)\&. If one or more filenames are passed on the command line, only the directives in these files are applied\&.
.PP
In addition,
\fB\-\-prefix=\fR
option may be used to limit which sysctl settings are applied\&.
.PP
See
\fBsysctl.d\fR(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\&.
.SH "OPTIONS"
.PP
\fB\-\-prefix=\fR
.RS 4
Only apply rules with the specified prefix\&.
.RE
.PP
\fB\-\-cat\-config\fR
.RS 4
Copy the contents of config files to standard output\&. Before each file, the filename is printed as a comment\&.
.RE
.PP
\fB\-\-no\-pager\fR
.RS 4
Do not pipe output into a pager\&.
.RE
.PP
\fB\-h\fR, \fB\-\-help\fR
.RS 4
Print a short help text and exit\&.
.RE
.PP
\fB\-\-version\fR
.RS 4
Print a short version string and exit\&.
.RE
.SH "EXAMPLES"
.PP
\fBExample\ \&1.\ \&Reset all sysctl settings\fR
.sp
.if n \{\
.RS 4
.\}
.nf
systemctl restart systemd\-sysctl
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&2.\ \&View coredump handler configuration\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# sysctl kernel\&.core_pattern
kernel\&.core_pattern = |/usr/libexec/abrt\-hook\-ccpp %s %c %p %u %g %t %P %I
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&3.\ \&Update coredump handler configuration\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /usr/lib/systemd/systemd\-sysctl \-\-prefix kernel\&.core_pattern
.fi
.if n \{\
.RE
.\}
.PP
This searches all the directories listed in
\fBsysctl.d\fR(5)
for configuration files and writes
/proc/sys/kernel/core_pattern\&.
.PP
\fBExample\ \&4.\ \&Update coredump handler configuration according to a specific file\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /usr/lib/systemd/systemd\-sysctl 50\-coredump\&.conf
.fi
.if n \{\
.RE
.\}
.PP
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\&.
.PP
See
\fBsysctl\fR(8)
for various ways to directly apply sysctl settings\&.
.SH "SEE ALSO"
.PP
\fBsystemd\fR(1),
\fBsysctl.d\fR(5),
\fBsysctl\fR(8),