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