Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man5/sysctl.conf.5
Show All 18 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd December 30, 1999 | .Dd July 21, 2018 | ||||
.Dt SYSCTL.CONF 5 | .Dt SYSCTL.CONF 5 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm sysctl.conf | .Nm sysctl.conf | ||||
.Nd kernel state defaults | .Nd kernel state defaults | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Pa /etc/sysctl.conf | .Pa /etc/sysctl.conf | ||||
file is read in when the system goes into multi-user mode to set default | file is read in when the system goes into multi-user mode to set default | ||||
settings for the kernel. | settings for the kernel. | ||||
The | The | ||||
.Pa /etc/sysctl.conf | .Pa /etc/sysctl.conf | ||||
is in the format of the | file is in the format of the | ||||
.Xr sysctl 8 | .Xr sysctl 8 | ||||
command, i.e.\& | command, i.e., | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
sysctl_mib=value | sysctl_mib=value | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
Comments are denoted by a | Comments are denoted by a | ||||
.Dq # | .Dq # | ||||
at the beginning of a line. | at the beginning of a line. | ||||
Comments can also exist at the end of a line, | Comments can also exist at the end of a line, | ||||
as seen in the | as seen in the | ||||
.Sx EXAMPLES | .Sx EXAMPLES | ||||
section, below. | section, below. | ||||
.Sh FILES | .Sh FILES | ||||
.Bl -tag -width /etc/sysctl.conf -compact | .Bl -tag -width /etc/sysctl.conf -compact | ||||
.It Pa /etc/sysctl.conf | .It Pa /etc/sysctl.conf | ||||
Initial settings for | Initial settings for | ||||
.Xr sysctl 8 . | .Xr sysctl 8 . | ||||
.El | .El | ||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
To turn off logging of programs that exit due to fatal signals you may use | To turn off logging of programs that exit due to fatal signals you may use | ||||
a configuration like | a configuration like | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
# Configure logging. | # Configure logging. | ||||
kern.logsigexit=0 # Do not log fatal signal exits (e.g. sig 11) | kern.logsigexit=0 # Do not log fatal signal exits (e.g., sig 11) | ||||
.Ed | .Ed | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr rc.conf 5 , | .Xr rc.conf 5 , | ||||
.Xr rc 8 , | .Xr rc 8 , | ||||
.Xr sysctl 8 | .Xr sysctl 8 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Nm | .Nm | ||||
file appeared in | file appeared in | ||||
.Fx 4.0 . | .Fx 4.0 . | ||||
.Sh BUGS | .Sh BUGS | ||||
If loadable kernel modules are used to introduce additional kernel | If loadable kernel modules are used to introduce additional kernel | ||||
functionality and sysctls to manage that functionality, | functionality and sysctls to manage that functionality, | ||||
.Nm | .Nm | ||||
may be processed too early in the boot process to set those sysctls. | may be processed too early in the boot process to set those sysctls. | ||||
For example, sysctls to manage the linux emulator cannot be set in | For example, sysctls to manage the Linux compatibility layer | ||||
.Po | |||||
.Xr linux 4 | |||||
.Pc | |||||
cannot be set in | |||||
.Nm | .Nm | ||||
if the linux emulator is loaded as a module rather than | if the Linux compatibility layer is loaded as a module rather than | ||||
compiled into the kernel. | compiled into the kernel. |