2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2005-05-07 03:42:57 +08:00
|
|
|
<!ENTITY fcron-download-http "http://fcron.free.fr/archives/fcron-&fcron-version;.src.tar.gz">
|
|
|
|
<!ENTITY fcron-download-ftp "ftp://ftp.seul.org/pub/fcron/fcron-&fcron-version;.src.tar.gz">
|
2008-10-03 17:49:06 +08:00
|
|
|
<!ENTITY fcron-md5sum "5a26a1dfd91fdc7e87401e98aef870e6">
|
|
|
|
<!ENTITY fcron-size "540 KB">
|
|
|
|
<!ENTITY fcron-buildsize "3.6 MB">
|
2006-04-25 13:30:19 +08:00
|
|
|
<!ENTITY fcron-time "0.1 SBU">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2003-09-27 00:42:15 +08:00
|
|
|
<sect1 id="fcron" xreflabel="Fcron-&fcron-version;">
|
2005-05-07 03:42:57 +08:00
|
|
|
<?dbhtml filename="fcron.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Fcron-&fcron-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="fcron">
|
|
|
|
<primary sortas="a-Fcron">Fcron</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Fcron</title>
|
|
|
|
|
|
|
|
<para>The <application>Fcron</application> package contains a periodical
|
|
|
|
command scheduler which aims at replacing <application>Vixie
|
|
|
|
Cron</application>.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&fcron-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&fcron-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &fcron-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &fcron-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &fcron-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &fcron-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Fcron Dependencies</bridgehead>
|
2005-11-30 03:07:13 +08:00
|
|
|
|
2005-05-07 03:42:57 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2006-05-27 01:50:22 +08:00
|
|
|
<para role="optional">An <xref linkend="server-mail"/>,
|
2005-10-16 09:24:07 +08:00
|
|
|
<ulink url="../postlfs/editors.html">text editor</ulink> (default is
|
|
|
|
<command>vi</command> from the <xref linkend="vim"/> package),
|
2005-11-29 12:38:04 +08:00
|
|
|
<xref linkend="linux-pam"/>,
|
2005-07-30 00:11:40 +08:00
|
|
|
<xref linkend="docbook-utils"/>
|
|
|
|
</para>
|
2005-05-07 03:42:57 +08:00
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/fcron"/></para>
|
|
|
|
|
2005-05-07 03:42:57 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Fcron</title>
|
|
|
|
|
2005-05-31 05:39:09 +08:00
|
|
|
<para id="fcron-syslog"><application>Fcron</application> uses the cron facility
|
|
|
|
of <command>syslog</command> to log all messages. Since LFS
|
|
|
|
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
|
2005-07-28 02:05:59 +08:00
|
|
|
<filename>/etc/syslog.conf</filename> (perform as the
|
|
|
|
<systemitem class='username'>root</systemitem> user):</para>
|
2005-05-07 03:42:57 +08:00
|
|
|
|
|
|
|
<indexterm zone="fcron fcron-syslog">
|
|
|
|
<primary sortas="e-etc-syslog.conf">/etc/syslog.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat >> /etc/syslog.conf << "EOF"
|
|
|
|
<literal># 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
|
|
|
|
2005-05-07 03:42:57 +08:00
|
|
|
# End fcron addition</literal>
|
|
|
|
EOF</userinput></screen>
|
2004-12-22 09:00:40 +08:00
|
|
|
|
2005-05-07 03:42:57 +08:00
|
|
|
<para>The configuration file has been modified, so reloading the
|
2005-07-28 02:05:59 +08:00
|
|
|
<command>sysklogd</command> daemon will activate the changes (again as the
|
|
|
|
<systemitem class='username'>root</systemitem> user).</para>
|
2005-05-07 03:42:57 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>/etc/rc.d/init.d/sysklogd reload</userinput></screen>
|
|
|
|
|
2005-05-31 05:39:09 +08:00
|
|
|
<para>For security reasons, an unprivileged user and group for
|
2005-07-28 02:05:59 +08:00
|
|
|
<application>Fcron</application> should be created (perform as the
|
|
|
|
<systemitem class='username'>root</systemitem> user):</para>
|
2005-05-07 03:42:57 +08:00
|
|
|
|
2005-06-06 05:06:40 +08:00
|
|
|
<screen role="root"><userinput>groupadd -g 22 fcron &&
|
|
|
|
useradd -d /dev/null -c "Fcron User" -g fcron -s /bin/false -u 22 fcron</userinput></screen>
|
2005-05-07 03:42:57 +08:00
|
|
|
|
2005-05-31 05:39:09 +08:00
|
|
|
<para>Install <application>Fcron</application> by running the following
|
2005-05-07 03:42:57 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2007-11-02 05:53:39 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
|
|
|
|
--localstatedir=/var --without-sendmail --with-boot-install=no &&
|
2005-05-07 03:42:57 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2007-02-06 01:10:27 +08:00
|
|
|
<para><parameter>--without-sendmail</parameter>: By default,
|
2007-02-06 03:46:51 +08:00
|
|
|
<application>Fcron</application> will attempt to use the
|
|
|
|
<command>sendmail</command> command from an <xref linkend="server-mail"/>
|
|
|
|
package to email you the results of the <command>fcron</command> script.
|
|
|
|
This switch is used to disable default email notification. Omit the switch
|
|
|
|
to enable the default. Alternatively, you can use the
|
|
|
|
<option>--with-sendmail=<replaceable></path/to/MTA
|
|
|
|
command></replaceable></option> to use a different mailer command.</para>
|
2005-05-07 03:42:57 +08:00
|
|
|
|
2005-07-10 02:32:25 +08:00
|
|
|
<para><parameter>--with-boot-install=no</parameter>: This prevents installation
|
|
|
|
of the bootscript included with the package.</para>
|
2005-05-07 03:42:57 +08:00
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para><option>--with-editor=<replaceable></path/to/editor></replaceable></option>:
|
2005-10-16 09:24:07 +08:00
|
|
|
This switch allows you to set the default text editor.</para>
|
|
|
|
|
2005-05-07 03:42:57 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring Fcron</title>
|
|
|
|
|
|
|
|
<sect3 id="fcron-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
|
|
|
<para><filename>/etc/fcron.conf</filename>,
|
2005-05-31 05:39:09 +08:00
|
|
|
<filename>/etc/fcron.allow</filename>, and
|
2005-05-07 03:42:57 +08:00
|
|
|
<filename>/etc/fcron.deny</filename></para>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<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>
|
2005-11-30 03:07:13 +08:00
|
|
|
|
2005-05-31 05:39:09 +08:00
|
|
|
<para><command>fcron</command> scripts are written using
|
|
|
|
<command>fcrontab</command>. Refer to the <command>fcrontab</command> man
|
2005-05-07 03:42:57 +08:00
|
|
|
page for proper parameters to address your situation.</para>
|
|
|
|
|
2005-05-31 00:35:31 +08:00
|
|
|
<para id="fcron-pam">If <application>Linux-PAM</application>
|
2005-05-31 05:39:09 +08:00
|
|
|
is installed, two PAM 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
|
2005-05-07 03:42:57 +08:00
|
|
|
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>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 id="fcron-init">
|
|
|
|
<title>Boot Script</title>
|
|
|
|
|
2005-05-31 00:35:31 +08:00
|
|
|
<para>Install the <filename>/etc/rc.d/init.d/fcron</filename>
|
2005-12-29 09:38:36 +08:00
|
|
|
init script from the <xref linkend="bootscripts"/>
|
2005-05-07 03:42:57 +08:00
|
|
|
package.</para>
|
|
|
|
|
|
|
|
<indexterm zone="fcron fcron-init">
|
|
|
|
<primary sortas="f-fcron">fcron</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install-fcron</userinput></screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<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"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<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>
|
2005-05-31 05:39:09 +08:00
|
|
|
<para>is a user tool intended to interact with a running
|
2005-05-07 03:42:57 +08:00
|
|
|
<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>
|
2005-05-31 05:39:09 +08:00
|
|
|
<para>instructs <command>fcron</command> to reread the
|
2005-05-07 03:42:57 +08:00
|
|
|
<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>
|
2005-05-31 05:39:09 +08:00
|
|
|
<para>is a program used to install, edit, list and remove the
|
2005-05-07 03:42:57 +08:00
|
|
|
tables used by <command>fcron</command>.</para>
|
|
|
|
<indexterm zone="fcron fcrontab">
|
|
|
|
<primary sortas="b-fcrontab">fcrontab</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|