White space fix only. Translators can ignore.

Sponsored by:	iXsystems
This commit is contained in:
Dru Lavigne 2014-05-05 20:28:46 +00:00
parent 1f1d8dbccb
commit 4e8e3f8b52
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44767

View file

@ -232,30 +232,29 @@ run_rc_command "$1"</programlisting>
<secondary>configuration</secondary> <secondary>configuration</secondary>
</indexterm> </indexterm>
<para>One of the most useful utilities in &os; is <application>cron</application>. <para>One of the most useful utilities in &os; is
This utility runs in the background and regularly checks <application>cron</application>. This utility runs in the
background and regularly checks
<filename>/etc/crontab</filename> for tasks to execute and <filename>/etc/crontab</filename> for tasks to execute and
searches <filename>/var/cron/tabs</filename> for custom searches <filename>/var/cron/tabs</filename> for custom crontab
crontab files. These files are used to schedule files. These files are used to schedule tasks which
tasks which <application>cron</application> runs at the <application>cron</application> runs at the specified times.
specified times. Each entry in a crontab defines a task to run Each entry in a crontab defines a task to run and is known as a
and is known as a <firstterm>cron job</firstterm>.</para> <firstterm>cron job</firstterm>.</para>
<para>Two different types of configuration files are used: <para>Two different types of configuration files are used: the
the system crontab, which should not be modified, and user system crontab, which should not be modified, and user crontabs,
crontabs, which can be created and edited as needed. The format which can be created and edited as needed. The format used by
used by these files is documented in &man.crontab.5;. The these files is documented in &man.crontab.5;. The format of the
format of the system crontab, <filename>/etc/crontab</filename> system crontab, <filename>/etc/crontab</filename> includes a
includes a <literal>who</literal> column which does not exist in <literal>who</literal> column which does not exist in user
user crontabs. In the system crontab, crontabs. In the system crontab,
<application>cron</application> runs the command as <application>cron</application> runs the command as the user
the user specified in this column. In a user specified in this column. In a user crontab, all commands run
crontab, all commands run as the user who as the user who created the crontab.</para>
created the crontab.</para>
<para>User crontabs allow <para>User crontabs allow individual users to schedule their own
individual users to schedule their own tasks. The <systemitem tasks. The <systemitem class="username">root</systemitem> user
class="username">root</systemitem> user
can also have a user <filename>crontab</filename> which can be can also have a user <filename>crontab</filename> which can be
used to schedule tasks that do not exist in the system used to schedule tasks that do not exist in the system
<filename>crontab</filename>.</para> <filename>crontab</filename>.</para>
@ -276,13 +275,12 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin <co xml:id="co-env"/>
<calloutlist> <calloutlist>
<callout arearefs="co-comments"> <callout arearefs="co-comments">
<para>Lines that begin <para>Lines that begin with the <literal>#</literal> character
with the <literal>#</literal> character are comments. A are comments. A comment can be placed in the file as a
comment can be placed in the file as a reminder of what and reminder of what and why a desired action is performed.
why a desired action is performed. Comments cannot be on Comments cannot be on the same line as a command or else
the same line as a command or else they will be interpreted they will be interpreted as part of the command; they must
as part of the command; they must be on a new line. Blank be on a new line. Blank lines are ignored.</para>
lines are ignored.</para>
</callout> </callout>
<callout arearefs="co-env"> <callout arearefs="co-env">
@ -290,45 +288,43 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin <co xml:id="co-env"/>
define any environment settings. In this example, it is define any environment settings. In this example, it is
used to define the <envar>SHELL</envar> and used to define the <envar>SHELL</envar> and
<envar>PATH</envar>. If the <envar>SHELL</envar> is <envar>PATH</envar>. If the <envar>SHELL</envar> is
omitted, <application>cron</application> will use the default Bourne shell. omitted, <application>cron</application> will use the
If the <envar>PATH</envar> is omitted, the full path must be given to the default Bourne shell. If the <envar>PATH</envar> is
command or script to run.</para> omitted, the full path must be given to the command or
script to run.</para>
</callout> </callout>
<callout arearefs="co-field-descr"> <callout arearefs="co-field-descr">
<para>This line defines the seven fields used in a system crontab: <para>This line defines the seven fields used in a system
<literal>minute</literal>, crontab: <literal>minute</literal>, <literal>hour</literal>,
<literal>hour</literal>, <literal>mday</literal>, <literal>mday</literal>, <literal>month</literal>,
<literal>month</literal>, <literal>wday</literal>, <literal>wday</literal>, <literal>who</literal>, and
<literal>who</literal>, and <literal>command</literal>. <literal>command</literal>. The <literal>minute</literal>
The field is the time in minutes when the specified command will
<literal>minute</literal> field is the time in minutes when the be run, the <literal>hour</literal> is the hour when the
specified command will be run, the <literal>hour</literal> is specified command will be run, the <literal>mday</literal>
the hour when the specified command will be run, the is the day of the month, <literal>month</literal> is the
<literal>mday</literal> is the day of the month, month, and <literal>wday</literal> is the day of the week.
<literal>month</literal> is the month, and
<literal>wday</literal> is the day of the week.
These fields must be numeric values, representing the These fields must be numeric values, representing the
twenty-four hour clock, or a <literal>*</literal>, twenty-four hour clock, or a <literal>*</literal>,
representing all values for that field. The representing all values for that field. The
<literal>who</literal> field only exists in the system <literal>who</literal> field only exists in the system
crontab and specifies which user the command crontab and specifies which user the command should be run
should be run as. The last field is the command to be as. The last field is the command to be executed.</para>
executed.</para>
</callout> </callout>
<callout arearefs="co-main"> <callout arearefs="co-main">
<para>This entry defines the values for this cron job. <para>This entry defines the values for this cron job. The
The <literal>*/5</literal>, followed <literal>*/5</literal>, followed by several more
by several more <literal>*</literal> characters, specifies that <literal>*</literal> characters, specifies that
<command>/usr/libexec/atrun</command> is invoked by <command>/usr/libexec/atrun</command> is invoked by
<systemitem class="username">root</systemitem> every five <systemitem class="username">root</systemitem> every five
minutes of every hour, of every day and day of the week, of minutes of every hour, of every day and day of the week, of
every month.</para> every month.</para>
<para>Commands can include any number of switches. <para>Commands can include any number of switches. However,
However, commands which extend to multiple lines need to be commands which extend to multiple lines need to be broken
broken with the backslash <quote>\</quote> continuation with the backslash <quote>\</quote> continuation
character.</para> character.</para>
</callout> </callout>
</calloutlist> </calloutlist>
@ -384,7 +380,6 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
<screen>&prompt.user; <userinput>crontab -l</userinput> <screen>&prompt.user; <userinput>crontab -l</userinput>
remove crontab for dru? <userinput>y</userinput></screen> remove crontab for dru? <userinput>y</userinput></screen>
</sect2> </sect2>
</sect1> </sect1>
@ -654,14 +649,14 @@ ifconfig_fxp0="inet 10.1.1.1/8"</programlisting>
information about the supported hardware and any known information about the supported hardware and any known
limitations of the driver.</para> limitations of the driver.</para>
<para>The drivers for common <acronym>NIC</acronym>s are <para>The drivers for common <acronym>NIC</acronym>s are already
already present in the <filename>GENERIC</filename> kernel, present in the <filename>GENERIC</filename> kernel, meaning
meaning the <acronym>NIC</acronym> should be probed during boot. the <acronym>NIC</acronym> should be probed during boot. The
The system's boot messages can be viewed by typing system's boot messages can be viewed by typing
<command>more /var/run/dmesg.boot</command> and using the <command>more /var/run/dmesg.boot</command> and using the
spacebar to scroll through the text. In this example, two spacebar to scroll through the text. In this example, two
Ethernet <acronym>NIC</acronym>s using the Ethernet <acronym>NIC</acronym>s using the &man.dc.4; driver
&man.dc.4; driver are present on the system:</para> are present on the system:</para>
<screen>dc0: &lt;82c169 PNIC 10/100BaseTX&gt; port 0xa000-0xa0ff mem 0xd3800000-0xd38 <screen>dc0: &lt;82c169 PNIC 10/100BaseTX&gt; port 0xa000-0xa0ff mem 0xd3800000-0xd38
000ff irq 15 at device 11.0 on pci0 000ff irq 15 at device 11.0 on pci0