sysctl.conf.5 1.94 KB
Newer Older
csmall's avatar
csmall committed
1 2 3 4 5 6 7 8
.\" Copyright 1999, George Staikos (staikos@0wned.org)
.\" This file may be used subject to the terms and conditions of the
.\" GNU General Public License Version 2, or any later version
.\" at your option, as published by the Free Software Foundation.
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details."
9
.TH SYSCTL.CONF "5" "January 2012" "procps-ng" "File Formats"
csmall's avatar
csmall committed
10
.SH NAME
11
sysctl.conf \- sysctl preload/configuration file
csmall's avatar
csmall committed
12
.SH DESCRIPTION
13 14 15
.B sysctl.conf
is a simple file containing sysctl values to be read in and set by
.BR sysctl .
csmall's avatar
csmall committed
16 17 18 19 20 21 22 23
The syntax is simply as follows:
.RS
.sp
.nf
.ne 7
# comment
; comment

24
token = value
csmall's avatar
csmall committed
25 26 27 28 29 30
.fi
.RE
.PP
Note that blank lines are ignored, and whitespace before and after a token or
value is ignored, although a value can contain whitespace within.  Lines which
begin with a # or ; are considered comments and ignored.
31
.SH NOTES
32
As the
33 34
.BR /etc/sysctl.conf
file is used to override default kernel parameter values, only a small number of parameters is predefined in the file.
35
Use
36
.IR /sbin/sysctl\ \-a
37 38
or follow
.BR sysctl (8)
39
to list all possible parameters. The description of individual parameters can be found in the kernel documentation.
csmall's avatar
csmall committed
40 41 42 43 44 45 46 47 48 49 50 51 52
.SH EXAMPLE
.RS
.sp
.nf
.ne 7
# sysctl.conf sample
#
  kernel.domainname = example.com
; this one has a space which will be written to the sysctl!
  kernel.modprobe = /sbin/mod probe
.fi
.RE
.PP
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
.SH FILES
.TP
/run/sysctl.d/*.conf
.TQ
/etc/sysctl.d/*.conf
.TQ
/usr/local/lib/sysctl.d/*.conf
.TQ
/usr/lib/sysctl.d/*.conf
.TQ
/lib/sysctl.d/*.conf
.TQ
/etc/sysctl.conf
The paths where
sysctl
68
preload files usually exist.  See also
69 70 71
sysctl
option
.IR \-\-system .
csmall's avatar
csmall committed
72
.SH SEE ALSO
73
.BR sysctl (8)
csmall's avatar
csmall committed
74
.SH AUTHOR
75
.UR staikos@0wned.org
76 77 78 79
George Staikos
.UE
.SH "REPORTING BUGS"
Please send bug reports to
80
.UR procps@freelists.org
81
.UE