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