/usr/share/doc/lire/user-manual/ch04s05.html is in lire-doc 2:2.1.1-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Using lr_cron within Cron</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="Lire User's Manual"><link rel="up" href="ch04.html" title="Chapter 4. Using DLF Stores"><link rel="prev" href="ch04s04.html" title="Report Jobs"><link rel="next" href="ch04s06.html" title="Report Configurations"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Using <span class="command"><strong>lr_cron</strong></span> within Cron</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04s04.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Using DLF Stores</th><td width="20%" align="right"> <a accesskey="n" href="ch04s06.html">Next</a></td></tr></table><hr></div><div class="section" title="Using lr_cron within Cron"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sect:setting-cron"></a>Using <span class="command"><strong>lr_cron</strong></span> within Cron</h2></div></div></div><p>To actually execute all that is configured in the Dlf
Store, you need to run the <span class="command"><strong>lr_cron</strong></span>
command at regular interval.
</p><p>Installing cron jobs is really easy since the only parameters
given to <span class="command"><strong>lr_cron</strong></span> are a
<em class="parameter"><code>period</code></em> and a <em class="parameter"><code>store</code></em>.
The lines to add to your crontab should look similar to:
</p><pre class="screen">
0 * * * * /usr/bin/lr_cron hourly /var/lib/lire/my_store
0 1 * * * /usr/bin/lr_cron daily /var/lib/lire/my_store
0 2 * * 0 /usr/bin/lr_cron weekly /var/lib/lire/my_store
0 3 1 * * /usr/bin/lr_cron monthly /var/lib/lire/my_store
0 4 1 1 * /usr/bin/lr_cron yearly /var/lib/lire/my_store
</pre><p>
</p><p>You should configure one job for each different period
you use. You can also configure it for all period since
nothing will be done when there are no scheduled actions to
execute.
</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>You should take care to setup the time at which the
<span class="command"><strong>lr command</strong></span> is executed so that it makes
sense in regards of your log rotation scheme. For example,
if you run the daily schedule at 1AM but you rotate your
daily logs at 2AM, lr_cron will act upon the data of two
days ago instead of on the data of the previous day.
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04s04.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04s06.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Report Jobs </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Report Configurations</td></tr></table></div></body></html>
|