Changeset 58720a7b for general


Ignore:
Timestamp:
07/09/2014 01:52:45 AM (10 years ago)
Author:
Fernando de Oliveira <fernando@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
30fe7dd
Parents:
8abba5b9
Message:

Update to MesaLib-10.2.3.
Update to webkitgtk-2.4.4.
Logrotate-3.8.7: typo, tweaks, more explanations.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@13365 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/logrotate.xml

    r8abba5b9 r58720a7b  
    173173
    174174# End of /etc/logrotate.conf
    175 EOF</userinput></screen>
     175EOF
     176
     177chmod -v 0644 /etc/logrotate.conf</userinput></screen>
    176178
    177179    <para>Now create the <filename class='directory'>/etc/logrotate.d</filename>
     
    185187
    186188<screen role="root"><userinput>cat &gt; /etc/logrotate.d/sys.log &lt;&lt; EOF
    187 sys.log {
     189/var/log/sys.log {
    188190   # If the log file is larger than 100kb, rotate it
    189191   size   100k
     
    194196   endscript
    195197}
    196 EOF</userinput></screen>
    197 
    198   <para>See the logrotate man page or
     198EOF
     199
     200chmod -v 0644 /etc/logrotate.d/sys.log</userinput></screen>
     201
     202  <para>You can designate multiple files in one entry:</para>
     203
     204<screen role="root"><userinput>cat &gt; /etc/logrotate.d/example.log &lt;&lt; EOF
     205file1
     206file2
     207file3 {
     208   ...
     209   postrotate
     210    ...
     211   endscript
     212}
     213EOF
     214
     215chmod -v 0644 /etc/logrotate.d/example.log</userinput></screen>
     216
     217  <para>You can use in the same line the list of files: file1 file2 file3.
     218  See the logrotate man page or
    199219  <ulink url='http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/'/>
    200220  for more examples.</para>
    201221
    202222  <para>The command <command>logrotate /etc/logrotate.conf</command> can be
    203   run manually, however, the command should be run daily. 
    204   To set up <xref linkend='fcron'/> to run at 3AM daily, root's crontab
    205   should be edited to add:</para>
     223  run manually, however, the command should be run daily.
     224  Other useful commands are <command>logrotate -d /etc/logrotate.conf</command>
     225  for debugging purposes and <command>logrotate -f /etc/logrotate.conf</command>
     226  forcing the logrotate commands to be run immediately. Combining the previous
     227  options <option>-df</option>, you can debug the effect of the force command.
     228  When debugging, the command is only simulated, not really run, thus, eventual
     229  non-existing errors appear, when some intermediate files are expected,
     230  because they are not actually created.</para>
     231
     232  <para>To set up <xref linkend='fcron'/> to run
     233  <command>logrotate ...</command> at 3AM daily, root's crontab should be
     234  edited to add:</para>
    206235
    207236<screen><literal>0 3 * * *   /usr/sbin/logrotate /etc/logrotate.conf</literal></screen>
Note: See TracChangeset for help on using the changeset viewer.