[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[d409f3a] | 7 | <!ENTITY fcron-download-http "http://fcron.free.fr/archives/fcron-&fcron-version;.src.tar.gz">
|
---|
[52d29f7] | 8 | <!ENTITY fcron-download-ftp "ftp://ftp.seul.org/pub/fcron/fcron-&fcron-version;.src.tar.gz">
|
---|
[f968bfa] | 9 | <!ENTITY fcron-size "390 KB">
|
---|
[d409f3a] | 10 | <!ENTITY fcron-buildsize "3.4 MB">
|
---|
[52d29f7] | 11 | <!ENTITY fcron-time "0.10 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[5c5cdbc] | 14 | <sect1 id="fcron" xreflabel="Fcron-&fcron-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[7f72cbf] | 19 | <?dbhtml filename="fcron.html"?>
|
---|
[1586494] | 20 | <title><application>Fcron</application>-&fcron-version;</title>
|
---|
[f45b1953] | 21 |
|
---|
[52d29f7] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>Fcron</application></title>
|
---|
[1586494] | 24 |
|
---|
[52d29f7] | 25 | <para>The <application>Fcron</application> package contains a periodical
|
---|
| 26 | command scheduler which aims at replacing <application>Vixie
|
---|
| 27 | Cron</application>.</para>
|
---|
[1586494] | 28 |
|
---|
[52d29f7] | 29 | <sect3><title>Package information</title>
|
---|
| 30 | <itemizedlist spacing='compact'>
|
---|
[1586494] | 31 | <listitem><para>Download (HTTP):
|
---|
| 32 | <ulink url="&fcron-download-http;"/></para></listitem>
|
---|
| 33 | <listitem><para>Download (FTP):
|
---|
| 34 | <ulink url="&fcron-download-ftp;"/></para></listitem>
|
---|
[52d29f7] | 35 | <listitem><para>Download size: &fcron-size;</para></listitem>
|
---|
[1586494] | 36 | <listitem><para>Estimated disk space required:
|
---|
| 37 | &fcron-buildsize;</para></listitem>
|
---|
| 38 | <listitem><para>Estimated build time:
|
---|
| 39 | &fcron-time;</para></listitem></itemizedlist>
|
---|
[52d29f7] | 40 | </sect3>
|
---|
[1586494] | 41 |
|
---|
[52d29f7] | 42 | <sect3><title><application>Fcron</application> dependencies</title>
|
---|
| 43 | <sect4><title>Optional</title>
|
---|
[1586494] | 44 | <para><ulink url="../server/mail.html">MTA</ulink>,
|
---|
[52d29f7] | 45 | <xref linkend="Linux_PAM"/>,
|
---|
| 46 | <ulink url="http://www.nsa.gov/selinux/">SELinux</ulink>,
|
---|
[d9384404] | 47 | <xref linkend="docbook-utils"/> and
|
---|
[d409f3a] | 48 | <ulink url="../postlfs/editors.html">a text editor</ulink> (default is
|
---|
[1586494] | 49 | <xref linkend="postlfs-editors-vim"/>)</para>
|
---|
| 50 | </sect4>
|
---|
[52d29f7] | 51 | </sect3>
|
---|
[1586494] | 52 |
|
---|
[52d29f7] | 53 | </sect2>
|
---|
| 54 |
|
---|
| 55 | <sect2>
|
---|
| 56 | <title>Installation of <application>Fcron</application></title>
|
---|
[1586494] | 57 |
|
---|
[52d29f7] | 58 | <para><application>Fcron</application> uses the cron facility of
|
---|
[1586494] | 59 | <command>syslog</command> to log all messages. Since <acronym>LFS</acronym>
|
---|
| 60 | does not set up this facility in <filename>/etc/syslog.conf</filename>, it
|
---|
| 61 | needs to be done prior to installing <application>Fcron</application>. This
|
---|
| 62 | command will append the necessary line to the current
|
---|
| 63 | <filename>/etc/syslog.conf</filename>:</para>
|
---|
| 64 |
|
---|
[52d29f7] | 65 | <screen><userinput><command>cat >> /etc/syslog.conf << "EOF"
|
---|
| 66 | # Begin fcron addition to /etc/syslog.conf
|
---|
[1586494] | 67 |
|
---|
[52d29f7] | 68 | cron.* -/var/log/cron.log
|
---|
[1586494] | 69 |
|
---|
[52d29f7] | 70 | # End fcron addition
|
---|
| 71 | EOF</command></userinput></screen>
|
---|
[1586494] | 72 |
|
---|
[52d29f7] | 73 | <para>The configuration file has been modified, so reloading the
|
---|
| 74 | <command>sysklogd</command> daemon will activate the changes.</para>
|
---|
[1586494] | 75 |
|
---|
[52d29f7] | 76 | <screen><userinput><command>/etc/rc.d/init.d/sysklogd reload</command></userinput></screen>
|
---|
[1586494] | 77 |
|
---|
| 78 | <para>For security reasons, an unprivileged user and group for
|
---|
| 79 | <application>Fcron</application> should be created:</para>
|
---|
| 80 |
|
---|
[52d29f7] | 81 | <screen><userinput><command>groupadd fcron &&
|
---|
[1586494] | 82 | useradd -d /dev/null -c "Fcron User" -g fcron -s /bin/false fcron</command></userinput></screen>
|
---|
| 83 |
|
---|
| 84 | <para>Install <application>Fcron</application> by running the following
|
---|
| 85 | commands:</para>
|
---|
[52d29f7] | 86 |
|
---|
| 87 | <screen><userinput><command>./configure --without-sendmail --with-answer-all=no &&
|
---|
| 88 | make &&
|
---|
| 89 | make install</command></userinput></screen>
|
---|
[1586494] | 90 |
|
---|
[52d29f7] | 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2>
|
---|
| 94 | <title>Command explanations</title>
|
---|
[1586494] | 95 |
|
---|
[52d29f7] | 96 | <para><option>--without-sendmail</option>: <application>Fcron</application>
|
---|
[a0cd243] | 97 | will use an installed <acronym>MTA</acronym> to email you the results of the
|
---|
[52d29f7] | 98 | <command>fcron</command> script. If you wish to utilize this feature, change
|
---|
| 99 | the switch to <parameter>--with-sendmail=<replaceable>[path to your
|
---|
[a0cd243] | 100 | MTA]</replaceable></parameter>.</para>
|
---|
[1586494] | 101 |
|
---|
[52d29f7] | 102 | <para><parameter>--with-answer-all=no</parameter>: After the files are
|
---|
| 103 | installed, the <command>make install</command> script enters into a
|
---|
[1586494] | 104 | configuration routine. The first test will be whether to install a boot
|
---|
| 105 | script in the <filename class="directory">/etc/rc.d/init.d</filename>
|
---|
| 106 | directory with the appropriate symbolic links in run levels 2, 3, 4, and 5.
|
---|
| 107 | The second is to stop any current fcron processes and start a new one. Since
|
---|
| 108 | this is probably your first install and a boot script based upon the
|
---|
| 109 | <acronym>BLFS</acronym> template is desired, answer 'n' to both tests.</para>
|
---|
| 110 |
|
---|
[52d29f7] | 111 | </sect2>
|
---|
| 112 |
|
---|
| 113 | <sect2>
|
---|
| 114 | <title>Configuring <application>Fcron</application></title>
|
---|
[1586494] | 115 |
|
---|
[52d29f7] | 116 | <sect3><title>Config files</title>
|
---|
[1586494] | 117 |
|
---|
[52d29f7] | 118 | <para><filename>/etc/fcron.conf</filename>,
|
---|
[1586494] | 119 | <filename>/etc/fcron.allow</filename> and
|
---|
[52d29f7] | 120 | <filename>/etc/fcron.deny</filename></para>
|
---|
[1586494] | 121 |
|
---|
[52d29f7] | 122 | </sect3>
|
---|
[1586494] | 123 |
|
---|
[52d29f7] | 124 | <sect3><title>Configuration Information</title>
|
---|
[1586494] | 125 |
|
---|
[52d29f7] | 126 | <para>There are no required changes in any of the config files.
|
---|
| 127 | Configuration information can be found in the man page for
|
---|
| 128 | <filename>fcron.conf</filename>.</para>
|
---|
[1586494] | 129 |
|
---|
| 130 | <para><command>fcron</command> scripts are written using
|
---|
| 131 | <command>fcrontab</command>. Refer to the <command>fcrontab</command> man
|
---|
| 132 | page for proper parameters to address your situation.</para>
|
---|
| 133 |
|
---|
[52d29f7] | 134 | <para>Install the <filename>/etc/rc.d/init.d/fcron</filename>
|
---|
[1586494] | 135 | init script from the <xref linkend="intro-important-bootscripts"/>
|
---|
| 136 | package.</para>
|
---|
| 137 |
|
---|
[52d29f7] | 138 | <screen><userinput><command>make install-fcron</command></userinput></screen>
|
---|
[1586494] | 139 |
|
---|
[52d29f7] | 140 | </sect3>
|
---|
[1586494] | 141 |
|
---|
[52d29f7] | 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2>
|
---|
| 145 | <title>Contents</title>
|
---|
[1586494] | 146 |
|
---|
[52d29f7] | 147 | <para>The <application>Fcron</application> package contains
|
---|
[1586494] | 148 | <command>fcron</command>, <command>fcrontab</command>,
|
---|
| 149 | <command>fcronsighup</command> and <command>fcrondyn</command>.</para>
|
---|
| 150 |
|
---|
[52d29f7] | 151 | </sect2>
|
---|
[1586494] | 152 |
|
---|
[52d29f7] | 153 | <sect2><title>Description</title>
|
---|
[1586494] | 154 |
|
---|
[52d29f7] | 155 | <sect3><title>fcron</title>
|
---|
[1586494] | 156 | <para><command>fcron</command> is the scheduling daemon.</para></sect3>
|
---|
| 157 |
|
---|
[52d29f7] | 158 | <sect3><title>fcrontab</title>
|
---|
| 159 | <para><command>fcrontab</command> is the program used to install, edit, list
|
---|
| 160 | and remove the tables used by <command>fcron</command>.</para></sect3>
|
---|
[1586494] | 161 |
|
---|
[52d29f7] | 162 | <sect3><title>fcronsighup</title>
|
---|
| 163 | <para><command>fcronsighup</command> instructs <command>fcron</command> to
|
---|
| 164 | reread the fcron tables.</para></sect3>
|
---|
[1586494] | 165 |
|
---|
[52d29f7] | 166 | <sect3><title>fcrondyn</title>
|
---|
| 167 | <para><command>fcrondyn</command> is a user tool intended to interact with a
|
---|
| 168 | running <command>fcron</command> daemon.</para></sect3>
|
---|
[1586494] | 169 |
|
---|
[52d29f7] | 170 | </sect2>
|
---|
[f45b1953] | 171 |
|
---|
| 172 | </sect1>
|
---|