Ignore:
Timestamp:
01/27/2016 06:00:53 PM (8 years ago)
Author:
DJ Lucas <dj@…>
Branches:
systemd-13485
Children:
8cf08a11
Parents:
4c7c1d4
Message:

Merge Chapter 12 changes from trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16857 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/logrotate.xml

    r4c7c1d4 r14ba5f4  
    3131
    3232    <para>
    33       The <application>logrotate</application> package allows automatic rotation, 
    34       compression, removal, and mailing of log files. 
    35     </para>
    36 
    37     &lfs77_checked;
     33      The <application>logrotate</application> package allows automatic rotation,
     34      compression, removal, and mailing of log files.
     35    </para>
     36
     37    &lfs78_checked;
    3838
    3939    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    106106
    107107    <para>
    108       To test the results, issue: <command>make test</command>. 
     108      To test the results, issue: <command>make test</command>.
    109109    </para>
    110110
     
    130130     <title>Configuring Logrotate</title>
    131131
    132      <para><application>Logrotate</application> needs a configuration file, 
    133      which must be passed as an argument to the command when executed.  Create 
     132     <para><application>Logrotate</application> needs a configuration file,
     133     which must be passed as an argument to the command when executed.  Create
    134134     the file as the <systemitem class="username">root</systemitem> user:</para>
    135135
     
    177177EOF
    178178
    179 chmod -v 644 /etc/logrotate.conf</userinput></screen>
    180 
    181     <para>Now create the <filename class="directory">/etc/logrotate.d</filename>
     179chmod -v 0644 /etc/logrotate.conf</userinput></screen>
     180
     181    <para>Now create the <filename class='directory'>/etc/logrotate.d</filename>
    182182    directory as the  <systemitem class="username">root</systemitem> user:</para>
    183183
    184 <screen role="root"><userinput>mkdir -p /etc/logrotate.d</userinput></screen>
    185 
    186   <para>At this point additional log rotation commands can be entered, typically 
    187   in the <filename class="directory">/etc/logrotate.d</filename> directory.
     184<screen role="root"><userinput> mkdir -p /etc/logrotate.d</userinput></screen>
     185
     186  <para>At this point additional log rotation commands can be entered, typically
     187  in the <filename class='directory'>/etc/logrotate.d</filename> directory.
    188188  For example:</para>
    189189
     
    200200EOF
    201201
    202 chmod -v 644 /etc/logrotate.d/sys.log</userinput></screen>
     202chmod -v 0644 /etc/logrotate.d/sys.log</userinput></screen>
    203203
    204204  <para>You can designate multiple files in one entry:</para>
     
    215215EOF
    216216
    217 chmod -v 644 /etc/logrotate.d/example.log</userinput></screen>
     217chmod -v 0644 /etc/logrotate.d/example.log</userinput></screen>
    218218
    219219  <para>You can use in the same line the list of files: file1 file2 file3.
    220   See the logrotate man page or 
    221   <ulink url="http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/"/>
     220  See the logrotate man page or
     221  <ulink url='http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/'/>
    222222  for more examples.</para>
    223223
     
    232232  because they are not actually created.</para>
    233233
    234   <para>To set up <xref linkend="fcron"/> to run
     234  <para>To set up <xref linkend='fcron'/> to run
    235235  <command>logrotate ...</command> at 3AM daily, root's crontab should be
    236236  edited to add:</para>
     
    265265        <listitem>
    266266          <para>
    267             performs the log maintenance functions defined in the 
     267            performs the log maintenance functions defined in the
    268268            configuration files.
    269269          </para>
Note: See TracChangeset for help on using the changeset viewer.