Changeset 52e5650b for general/sysutils/logrotate.xml
- Timestamp:
- 10/26/2014 06:08:49 PM (10 years ago)
- Branches:
- krejzi/svn
- Children:
- da3d42d
- Parents:
- d5169f16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/logrotate.xml
rd5169f16 r52e5650b 177 177 EOF 178 178 179 chmod -v 0644 /etc/logrotate.conf</userinput></screen>180 181 <para>Now create the <filename class= 'directory'>/etc/logrotate.d</filename>179 chmod -v 644 /etc/logrotate.conf</userinput></screen> 180 181 <para>Now create the <filename class="directory">/etc/logrotate.d</filename> 182 182 directory as the <systemitem class="username">root</systemitem> user:</para> 183 183 184 <screen role="root"><userinput> 184 <screen role="root"><userinput>mkdir -p /etc/logrotate.d</userinput></screen> 185 185 186 186 <para>At this point additional log rotation commands can be entered, typically 187 in the <filename class= 'directory'>/etc/logrotate.d</filename> directory.187 in the <filename class="directory">/etc/logrotate.d</filename> directory. 188 188 For example:</para> 189 189 … … 200 200 EOF 201 201 202 chmod -v 0644 /etc/logrotate.d/sys.log</userinput></screen>202 chmod -v 644 /etc/logrotate.d/sys.log</userinput></screen> 203 203 204 204 <para>You can designate multiple files in one entry:</para> … … 215 215 EOF 216 216 217 chmod -v 0644 /etc/logrotate.d/example.log</userinput></screen>217 chmod -v 644 /etc/logrotate.d/example.log</userinput></screen> 218 218 219 219 <para>You can use in the same line the list of files: file1 file2 file3. 220 220 See the logrotate man page or 221 <ulink url= 'http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/'/>221 <ulink url="http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/"/> 222 222 for more examples.</para> 223 223 … … 232 232 because they are not actually created.</para> 233 233 234 <para>To set up <xref linkend= 'fcron'/> to run234 <para>To set up <xref linkend="fcron"/> to run 235 235 <command>logrotate ...</command> at 3AM daily, root's crontab should be 236 236 edited to add:</para>
Note:
See TracChangeset
for help on using the changeset viewer.