Changeset 3bdfdc61 for general/sysutils/logrotate.xml
- Timestamp:
- 08/25/2014 07:54:44 PM (10 years ago)
- Branches:
- 7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
- Children:
- a8e328fd
- Parents:
- 9fd79fd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/logrotate.xml
r9fd79fd7 r3bdfdc61 35 35 </para> 36 36 37 &lfs7 5_checked;37 &lfs76_checked; 38 38 39 39 <bridgehead renderas="sect3">Package Information</bridgehead> … … 175 175 EOF 176 176 177 chmod -v 0644 /etc/logrotate.conf</userinput></screen>178 179 <para>Now create the <filename class= 'directory'>/etc/logrotate.d</filename>177 chmod -v 644 /etc/logrotate.conf</userinput></screen> 178 179 <para>Now create the <filename class="directory">/etc/logrotate.d</filename> 180 180 directory as the <systemitem class="username">root</systemitem> user:</para> 181 181 182 <screen role="root"><userinput> 182 <screen role="root"><userinput>mkdir -p /etc/logrotate.d</userinput></screen> 183 183 184 184 <para>At this point additional log rotation commands can be entered, typically 185 in the <filename class= 'directory'>/etc/logrotate.d</filename> directory.185 in the <filename class="directory">/etc/logrotate.d</filename> directory. 186 186 For example:</para> 187 187 … … 198 198 EOF 199 199 200 chmod -v 0644 /etc/logrotate.d/sys.log</userinput></screen>200 chmod -v 644 /etc/logrotate.d/sys.log</userinput></screen> 201 201 202 202 <para>You can designate multiple files in one entry:</para> … … 213 213 EOF 214 214 215 chmod -v 0644 /etc/logrotate.d/example.log</userinput></screen>215 chmod -v 644 /etc/logrotate.d/example.log</userinput></screen> 216 216 217 217 <para>You can use in the same line the list of files: file1 file2 file3. 218 218 See the logrotate man page or 219 <ulink url= 'http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/'/>219 <ulink url="http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/"/> 220 220 for more examples.</para> 221 221 … … 230 230 because they are not actually created.</para> 231 231 232 <para>To set up <xref linkend= 'fcron'/> to run232 <para>To set up <xref linkend="fcron"/> to run 233 233 <command>logrotate ...</command> at 3AM daily, root's crontab should be 234 234 edited to add:</para>
Note:
See TracChangeset
for help on using the changeset viewer.