RC.CONF(5) | File Formats Manual | RC.CONF(5) |
rc.conf
— system
configuration file
/etc/rc.conf |
This manual page describes the format of the /etc/rc.conf file. This file is a simple POSIX sh(1p) script that defines font, timezone, hostname and services which are used on system initialization and shutdown.
The file consists of a number of variable assignments of the form
“variable=value”. Comments can be specified by putting a hash
(‘#
’) symbol as the first character on
the line.
The different configuration variables are:
The force argument keeps the screen blank even if a key is pressed.
The poke argument unblanks the screen.
If BLANKTIME is unset, then rc(8) make screen blanks after 15 minutes of idle time.
Example: “BLANKTIME=15”
Example: “FONT=default”
Example: “KEYMAP=us”
Example: “TIMEZONE=Europe/Stockholm”
Example: “HOSTNAME=pluto”
Example: “SEEDRNG_SKIP_CREDIT=false”
Example: “SYSLOG=sysklogd”
⟨STRING
...⟩
’start
”. At
system shutdown or when entering single-user mode these scripts will be
called in the reverse order with the argument
“stop
”.
Example: “SERVICES=‘lo crond
net sshd
’”
The reason why the SYSLOG is specified separately from the SERVICES variable is as follows: firstly, the syslog daemon also starts in the single-user mode, and secondly, it is needed before the start of any services, so that the services can log the result if their work.
A sample /etc/rc.conf file:
# # /etc/rc.conf: system configuration # # See rc.conf(5) for more information. # BLANKTIME=15 FONT=default KEYMAP=us TIMEZONE=UTC HOSTNAME=host SYSLOG=sysklogd SERVICES='lo crond net' # End of file.
September 3, 2023 | Zeppe-Lin |