Just say "Heck, no!" to /etc/sysconfig.

This commit is contained in:
Michael Lucas 2003-06-14 02:30:28 +00:00
parent e3d45cc7d0
commit a3198d63b6
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=17297

View file

@ -6190,52 +6190,26 @@ C:\="DOS"</programlisting>
</question>
<answer>
<para>From 2.0.5R to 2.2.1R, the primary configuration file is
<filename>/etc/sysconfig</filename>. All the options are to be
specified in this file and other files such as
<filename>/etc/rc</filename> (see &man.rc.8;)
and <filename>/etc/netstart</filename> just include it.</para>
<para>Look in the <filename>/etc/sysconfig</filename> file and
change the value to match your system. This file is filled with
comments to show what to put in there.</para>
<para>In post-2.2.1 and 3.0,
<filename>/etc/sysconfig</filename> was renamed to a more
self-describing &man.rc.conf.5; file and the syntax
cleaned up a bit in the process.
<filename>/etc/netstart</filename> was also renamed to
<filename>/etc/rc.network</filename> so that all files
could be copied with a <command>cp /usr/src/etc/rc*
/etc</command> command.</para>
<para>And, in 3.1 and later, <filename>/etc/rc.conf</filename>
has been moved to <filename>/etc/defaults/rc.conf</filename>.
<para>The primary configuration file is <filename>/etc/defaults/rc.conf</filename> (see &man.rc.conf.5;)
System startup scripts such as <filename>/etc/rc</filename>
and <filename>/etc/rc.d</filename> (see &man.rc.8;) just
include this file.
<emphasis>Do not edit this file!</emphasis> Instead, if there
is any entry in <filename>/etc/defaults/rc.conf</filename> that
you want to change, you should copy the line into
<filename>/etc/rc.conf</filename> and change it there.</para>
<para>For example, if you wish to start named, the DNS server
included with FreeBSD in FreeBSD 3.1 or later, all you need to
<para>For example, if you wish to start named, the included DNS server,
all you need to
do is:</para>
<screen>&prompt.root; <userinput>echo named_enable="YES" &gt;&gt; /etc/rc.conf</userinput></screen>
<para>To start up local services in FreeBSD 3.1 or later, place
<para>To start up local services, place
shell scripts in the <filename>/usr/local/etc/rc.d</filename>
directory. These shell scripts should be set executable, and
end with a .sh. In FreeBSD 3.0 and earlier releases, you should
edit the <filename>/etc/rc.local</filename> file.</para>
end with a .sh.</para>
<para>The <filename>/etc/rc.serial</filename> is for serial port
initialization (e.g. locking the port characteristics, and so
on.).</para>
<para>The <filename>/etc/rc.i386</filename> is for Intel-specifics
settings, such as iBCS2 emulation or the PC system console
configuration.</para>
</answer>
</qandaentry>