<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Michael Kolb Fulda&#187; Web Engineering</title>
	<atom:link href="http://www.michael-kolb.co.uk/tag/daemon-hosting-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michael-kolb.co.uk</link>
	<description>Web Engineering</description>
	<lastBuildDate>Mon, 01 Mar 2010 05:58:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to use logrotate by linux</title>
		<link>http://www.michael-kolb.co.uk/webhosting/how-to-use-logrotate-by-linux/</link>
		<comments>http://www.michael-kolb.co.uk/webhosting/how-to-use-logrotate-by-linux/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 06:30:31 +0000</pubDate>
		<dc:creator>mk_michael</dc:creator>
				<category><![CDATA[Linux Daemons]]></category>
		<category><![CDATA[Webhosting]]></category>
		<category><![CDATA[daemon hosting linux]]></category>

		<guid isPermaLink="false">http://www.michael-kolb.co.uk/?p=1393</guid>
		<description><![CDATA[In a server environment it&#8217;s quite important to keep the size of log files in track. Everyone knows the problem of increasing file sizes in this matter. Therefore the logrotate daemon may help you to solve this problem. Files are rotated ore removed in a defined time slot to gzipped files for X times. You [...]]]></description>
			<content:encoded><![CDATA[<p>In a server environment it&#8217;s quite important to keep the size of log files in track. Everyone knows the problem of increasing file sizes in this matter. Therefore the logrotate daemon may help you to solve this problem. Files are rotated ore removed in a defined time slot to gzipped files for X times. You can find the configuration in /etc/logrotate.d.</p>
<p>In this directory you can find already given config files for some linux services.</p>
<p>This is an example of the samba logrotate in /etc/logrotate.d/samba:<br />
<code><br />
/var/log/samba/log.smbd {<br />
        weekly<br />
        missingok<br />
        rotate 7<br />
        postrotate<br />
                invoke-rc.d --quiet samba reload > /dev/null<br />
        endscript<br />
        compress<br />
        notifempty<br />
}<br />
</code></p>
<p><span id="more-1393"></span></p>
<p>The samba log file is rotated weekly and 7 rotated files will be compressed and archived. The eighth file is removed. After the rotation process the samba daemon is reloaded.</p>
<p><strong>compress </strong><br />
This is used to compress the rotated log file with gzip. </p>
<p><strong>nocompress </strong><br />
This is used when you don&#8217;t want to compress rotated log files. </p>
<p><strong>copytruncate</strong><br />
This is used when processes are still writing information to open log files. This option copies the active log file to a backup and truncates the active log file. </p>
<p><strong>nocopytruncate</strong><br />
This copies the log files to backup, but the open log file is not truncated. </p>
<p><strong>create mode owner group</strong><br />
This rotates the log file and creates a new log file with the specified permissions, owner, and group. The default is to use the same mode, owner, and group as the original file. </p>
<p><strong>nocreate</strong><br />
This prevents the creation of a new log file. </p>
<p><strong>delaycompress</strong><br />
When used with the compress option, the rotated log file is not compressed until the next time it is cycled. </p>
<p><strong>nodelaycompress</strong><br />
This overrides delaycompress. The log file is compressed when it is cycled. </p>
<p><strong>errors address</strong><br />
This mails logrotate errors to an address. </p>
<p><strong>ifempty</strong><br />
With this, the log file is rotated even if it is empty. This is the default for logrotate. </p>
<p><strong>notifempty</strong><br />
This does not rotate the log file if it is empty. </p>
<p><strong>mail address</strong><br />
This mails log files that are cycled to an address. When mail log files are cycled, they are effectively removed from the system. </p>
<p><strong>nomail</strong><br />
When mail log files are cycled, a copy is not mailed. </p>
<p><strong>olddir directory</strong><br />
With this, cycled log files are kept in the specified directory. This directory must be on the same filesystem as the current log files. </p>
<p><strong>noolddir</strong><br />
Cycled log files are kept in the same directory as the current log files. </p>
<p><strong>prerotate/endscript</strong><br />
These are statements that enclose commands to be executed prior to a log file being rotated. The prerotate and endscript keywords must appear on a line by themselves. </p>
<p><strong>postrotate/endscript</strong><br />
These are statements that enclose commands to be executed after a log file has been rotated. The postrotate and endscript keywords must appear on a line by themselves. </p>
<p><strong>daily</strong><br />
This is used to rotate log files daily. </p>
<p><strong>weekly</strong><br />
This is used to rotate log files weekly. </p>
<p><strong>monthly</strong><br />
This is used to rotate log files monthly. </p>
<p><strong>rotate count</strong><br />
This specifies the number of times to rotate a file before it is deleted. A count of 0 (zero) means no copies are retained. A count of 5 means five copies are retained. </p>
<p><strong>tabootext [+] list</strong><br />
This directs logrotate to not rotate files with the specified extension. The default list of extensions is .rpm-orig, .rpmsave, v, and ~. </p>
<p><strong>size size</strong><br />
With this, the log file is rotated when the specified size is reached. Size may be specified in bytes (default), kilobytes (sizek), or megabytes (sizem).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michael-kolb.co.uk/webhosting/how-to-use-logrotate-by-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
