2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-02 23:59:17 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
2004-06-13 06:56:28 +08:00
|
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2004-10-19 00:15:14 +08:00
|
|
|
<!ENTITY fcron-download-http "http://fcron.free.fr/archives/fcron-&fcron-version;.src.tar.gz">
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY fcron-download-ftp "ftp://ftp.seul.org/pub/fcron/fcron-&fcron-version;.src.tar.gz">
|
2005-02-08 10:34:15 +08:00
|
|
|
<!ENTITY fcron-md5sum "bf39dcef6d0c452f167f5a31a1231e4e">
|
2004-11-21 14:17:30 +08:00
|
|
|
<!ENTITY fcron-size "390 KB">
|
2004-10-19 00:15:14 +08:00
|
|
|
<!ENTITY fcron-buildsize "3.4 MB">
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY fcron-time "0.10 SBU">
|
|
|
|
]>
|
|
|
|
|
2003-09-27 00:42:15 +08:00
|
|
|
<sect1 id="fcron" xreflabel="Fcron-&fcron-version;">
|
2004-08-10 12:23:09 +08:00
|
|
|
<sect1info>
|
2004-08-10 12:25:57 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2004-08-10 12:23:09 +08:00
|
|
|
</sect1info>
|
2004-05-07 09:51:44 +08:00
|
|
|
<?dbhtml filename="fcron.html"?>
|
2004-12-22 09:00:40 +08:00
|
|
|
<title><application>Fcron</application>-&fcron-version;</title>
|
2005-02-27 04:34:33 +08:00
|
|
|
<indexterm zone="fcron">
|
|
|
|
<primary sortas="a-fcron">fcron</primary></indexterm>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Introduction to <application>Fcron</application></title>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<para>The <application>Fcron</application> package contains a periodical
|
|
|
|
command scheduler which aims at replacing <application>Vixie
|
|
|
|
Cron</application>.</para>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<sect3><title>Package information</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
2004-12-22 09:00:40 +08:00
|
|
|
<listitem><para>Download (HTTP):
|
|
|
|
<ulink url="&fcron-download-http;"/></para></listitem>
|
|
|
|
<listitem><para>Download (FTP):
|
|
|
|
<ulink url="&fcron-download-ftp;"/></para></listitem>
|
2005-02-08 10:34:15 +08:00
|
|
|
<listitem><para>Download MD5 sum: &fcron-md5sum;</para></listitem>
|
2004-06-13 06:56:28 +08:00
|
|
|
<listitem><para>Download size: &fcron-size;</para></listitem>
|
2004-12-22 09:00:40 +08:00
|
|
|
<listitem><para>Estimated disk space required:
|
|
|
|
&fcron-buildsize;</para></listitem>
|
|
|
|
<listitem><para>Estimated build time:
|
|
|
|
&fcron-time;</para></listitem></itemizedlist>
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect3>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<sect3><title><application>Fcron</application> dependencies</title>
|
|
|
|
<sect4><title>Optional</title>
|
2004-12-22 09:00:40 +08:00
|
|
|
<para><ulink url="../server/mail.html">MTA</ulink>,
|
2004-06-13 06:56:28 +08:00
|
|
|
<xref linkend="Linux_PAM"/>,
|
|
|
|
<ulink url="http://www.nsa.gov/selinux/">SELinux</ulink>,
|
2004-07-13 22:06:33 +08:00
|
|
|
<xref linkend="docbook-utils"/> and
|
2004-10-19 00:15:14 +08:00
|
|
|
<ulink url="../postlfs/editors.html">a text editor</ulink> (default is
|
2005-02-11 05:24:58 +08:00
|
|
|
<xref linkend="vim"/>)</para>
|
2004-12-22 09:00:40 +08:00
|
|
|
</sect4>
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect3>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>Fcron</application></title>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2005-02-27 04:34:33 +08:00
|
|
|
<para id="fcron-syslog"><application>Fcron</application> uses the cron facility
|
|
|
|
of <command>syslog</command> to log all messages. Since <acronym>LFS</acronym>
|
2004-12-22 09:00:40 +08:00
|
|
|
does not set up this facility in <filename>/etc/syslog.conf</filename>, it
|
|
|
|
needs to be done prior to installing <application>Fcron</application>. This
|
|
|
|
command will append the necessary line to the current
|
|
|
|
<filename>/etc/syslog.conf</filename>:</para>
|
2005-02-27 04:34:33 +08:00
|
|
|
<indexterm zone="fcron fcron-syslog">
|
|
|
|
<primary sortas="e-etc-syslog.conf">/etc/syslog.conf</primary></indexterm>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<screen><userinput><command>cat >> /etc/syslog.conf << "EOF"
|
|
|
|
# Begin fcron addition to /etc/syslog.conf
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
cron.* -/var/log/cron.log
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
# End fcron addition
|
|
|
|
EOF</command></userinput></screen>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<para>The configuration file has been modified, so reloading the
|
|
|
|
<command>sysklogd</command> daemon will activate the changes.</para>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<screen><userinput><command>/etc/rc.d/init.d/sysklogd reload</command></userinput></screen>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
|
|
|
<para>For security reasons, an unprivileged user and group for
|
|
|
|
<application>Fcron</application> should be created:</para>
|
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<screen><userinput><command>groupadd fcron &&
|
2004-12-22 09:00:40 +08:00
|
|
|
useradd -d /dev/null -c "Fcron User" -g fcron -s /bin/false fcron</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>Install <application>Fcron</application> by running the following
|
|
|
|
commands:</para>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
|
|
|
<screen><userinput><command>./configure --without-sendmail --with-answer-all=no &&
|
2005-02-27 04:34:33 +08:00
|
|
|
make</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>Now, as the root user:</para>
|
|
|
|
|
|
|
|
<screen><userinput role='root'><command>make install</command></userinput></screen>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2005-02-27 04:34:33 +08:00
|
|
|
<para><parameter>--without-sendmail</parameter>:
|
|
|
|
<application>Fcron</application> will use an installed <acronym>MTA</acronym>
|
|
|
|
to email you the results of the <command>fcron</command> script. Omit the
|
|
|
|
switch and use
|
|
|
|
<parameter>--with-sendmail=<replaceable>[/path/to/MTA]</replaceable></parameter>
|
|
|
|
if you wish to utilize this feature.</para>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<para><parameter>--with-answer-all=no</parameter>: After the files are
|
|
|
|
installed, the <command>make install</command> script enters into a
|
2004-12-22 09:00:40 +08:00
|
|
|
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 the appropriate symbolic links in run levels 2, 3, 4, and 5.
|
2005-02-27 04:34:33 +08:00
|
|
|
The second is to stop any current <command>fcron</command> processes and start
|
|
|
|
a new one. Since this is probably your first install and a boot script based
|
|
|
|
upon the <acronym>BLFS</acronym> template is desired, answer 'n' to both
|
|
|
|
tests.</para>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Configuring <application>Fcron</application></title>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2005-02-27 04:34:33 +08:00
|
|
|
<sect3 id="fcron-config"><title>Config files</title>
|
2004-06-13 06:56:28 +08:00
|
|
|
<para><filename>/etc/fcron.conf</filename>,
|
2004-12-22 09:00:40 +08:00
|
|
|
<filename>/etc/fcron.allow</filename> and
|
2004-06-13 06:56:28 +08:00
|
|
|
<filename>/etc/fcron.deny</filename></para>
|
2005-02-27 04:34:33 +08:00
|
|
|
<indexterm zone="fcron fcron-config">
|
|
|
|
<primary sortas="e-etc-fcron.conf">/etc/fcron.conf</primary></indexterm>
|
|
|
|
<indexterm zone="fcron fcron-config">
|
|
|
|
<primary sortas="e-etc-fcron.allow">/etc/fcron.allow</primary></indexterm>
|
|
|
|
<indexterm zone="fcron fcron-config">
|
|
|
|
<primary sortas="e-etc-fcron.deny">/etc/fcron.deny</primary></indexterm>
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect3>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<para>There are no required changes in any of the config files.
|
|
|
|
Configuration information can be found in the man page for
|
|
|
|
<filename>fcron.conf</filename>.</para>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
|
|
|
<para><command>fcron</command> scripts are written using
|
|
|
|
<command>fcrontab</command>. Refer to the <command>fcrontab</command> man
|
|
|
|
page for proper parameters to address your situation.</para>
|
|
|
|
|
2005-02-27 04:34:33 +08:00
|
|
|
<para id="fcron-init">Install the <filename>/etc/rc.d/init.d/fcron</filename>
|
2004-12-22 09:00:40 +08:00
|
|
|
init script from the <xref linkend="intro-important-bootscripts"/>
|
|
|
|
package.</para>
|
2005-02-27 04:34:33 +08:00
|
|
|
<indexterm zone="fcron fcron-init">
|
|
|
|
<primary sortas="f-fcron">fcron</primary></indexterm>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<screen><userinput><command>make install-fcron</command></userinput></screen>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2005-02-27 04:34:33 +08:00
|
|
|
<para id="fcron-pam">If <application>Linux-<acronym>PAM</acronym></application>
|
|
|
|
is installed, two <acronym>PAM</acronym> configuration files are installed in
|
|
|
|
<filename class='directory'>/etc/pam.d</filename>. Alternatively if
|
|
|
|
<filename class='directory'>/etc/pam.d</filename> is not used, the installation
|
|
|
|
will append two configuration sections to the exiting
|
|
|
|
<filename>/etc/pam.conf</filename> file. You should ensure the files match your
|
|
|
|
preferences. Modify them as required to suit your needs.</para>
|
|
|
|
<indexterm zone="fcron fcron-pam">
|
|
|
|
<primary sortas="e-etc-pam.d">/etc/pam.d/*</primary></indexterm>
|
|
|
|
<indexterm zone="fcron fcron-pam">
|
|
|
|
<primary sortas="e-etc-pam.conf">/etc/pam.conf</primary></indexterm>
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect3>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2005-02-27 04:34:33 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>fcron, fcrondyn, fcronsighup and fcrontab</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>/usr/share/doc/fcron-&fcron-version; and /var/spool/fcron</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
|
|
|
|
<varlistentry id="fcron-prog">
|
|
|
|
<term><command>fcron</command></term>
|
|
|
|
<listitem><para>is the scheduling daemon.</para>
|
|
|
|
<indexterm zone="fcron fcron-prog">
|
|
|
|
<primary sortas="b-fcron">fcron</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="fcrondyn">
|
|
|
|
<term><command>fcrondyn</command></term>
|
|
|
|
<listitem><para>is a user tool intended to interact with a running
|
|
|
|
<command>fcron</command> daemon.</para>
|
|
|
|
<indexterm zone="fcron fcrondyn">
|
|
|
|
<primary sortas="b-fcrondyn">fcrondyn</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="fcronsighup">
|
|
|
|
<term><command>fcronsighup</command></term>
|
|
|
|
<listitem><para>instructs <command>fcron</command> to reread the
|
|
|
|
<application>Fcron</application> tables.</para>
|
|
|
|
<indexterm zone="fcron fcronsighup">
|
|
|
|
<primary sortas="b-fcronsighup">fcronsighup</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="fcrontab">
|
|
|
|
<term><command>fcrontab</command></term>
|
|
|
|
<listitem><para>is a program used to install, edit, list and remove the
|
|
|
|
tables used by <command>fcron</command>.</para>
|
|
|
|
<indexterm zone="fcron fcrontab">
|
|
|
|
<primary sortas="b-fcrontab">fcrontab</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|