[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[30edc031] | 7 | <!ENTITY fcron-download-http "http://fcron.free.fr/archives/fcron-&fcron-version;.src.tar.gz">
|
---|
| 8 | <!ENTITY fcron-download-ftp "ftp://ftp.seul.org/pub/fcron/fcron-&fcron-version;.src.tar.gz">
|
---|
[12b202ed] | 9 | <!ENTITY fcron-md5sum "9ead65bd13ea6a3278e167f88c572ddb">
|
---|
| 10 | <!ENTITY fcron-size "409 KB">
|
---|
| 11 | <!ENTITY fcron-buildsize "3.6 MB">
|
---|
[30edc031] | 12 | <!ENTITY fcron-time "0.10 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[5c5cdbc] | 15 | <sect1 id="fcron" xreflabel="Fcron-&fcron-version;">
|
---|
[30edc031] | 16 | <?dbhtml filename="fcron.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Fcron-&fcron-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="fcron">
|
---|
| 26 | <primary sortas="a-Fcron">Fcron</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Fcron</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>Fcron</application> package contains a periodical
|
---|
| 33 | command scheduler which aims at replacing <application>Vixie
|
---|
| 34 | Cron</application>.</para>
|
---|
| 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&fcron-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&fcron-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &fcron-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &fcron-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &fcron-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &fcron-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
| 58 | <bridgehead renderas="sect3">Fcron Dependencies</bridgehead>
|
---|
[12b202ed] | 59 |
|
---|
[30edc031] | 60 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[539ace5] | 61 | <para><ulink url="../server/mail.html">MTA</ulink>,
|
---|
[30edc031] | 62 | <xref linkend="Linux_PAM"/>,
|
---|
| 63 | <ulink url="http://www.nsa.gov/selinux/">SELinux</ulink>,
|
---|
[12b202ed] | 64 | <xref linkend="docbook-utils"/>
|
---|
| 65 | </para>
|
---|
[30edc031] | 66 |
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2 role="installation">
|
---|
| 70 | <title>Installation of Fcron</title>
|
---|
| 71 |
|
---|
[539ace5] | 72 | <para id="fcron-syslog"><application>Fcron</application> uses the cron facility
|
---|
| 73 | of <command>syslog</command> to log all messages. Since LFS
|
---|
| 74 | does not set up this facility in <filename>/etc/syslog.conf</filename>, it
|
---|
| 75 | needs to be done prior to installing <application>Fcron</application>. This
|
---|
| 76 | command will append the necessary line to the current
|
---|
[b4054a8] | 77 | <filename>/etc/syslog.conf</filename> (perform as the
|
---|
| 78 | <systemitem class='username'>root</systemitem> user):</para>
|
---|
[30edc031] | 79 |
|
---|
| 80 | <indexterm zone="fcron fcron-syslog">
|
---|
| 81 | <primary sortas="e-etc-syslog.conf">/etc/syslog.conf</primary>
|
---|
| 82 | </indexterm>
|
---|
| 83 |
|
---|
| 84 | <screen role="root"><userinput>cat >> /etc/syslog.conf << "EOF"
|
---|
| 85 | <literal># Begin fcron addition to /etc/syslog.conf
|
---|
[1586494] | 86 |
|
---|
[52d29f7] | 87 | cron.* -/var/log/cron.log
|
---|
[1586494] | 88 |
|
---|
[30edc031] | 89 | # End fcron addition</literal>
|
---|
| 90 | EOF</userinput></screen>
|
---|
[1586494] | 91 |
|
---|
[30edc031] | 92 | <para>The configuration file has been modified, so reloading the
|
---|
[b4054a8] | 93 | <command>sysklogd</command> daemon will activate the changes (again as the
|
---|
| 94 | <systemitem class='username'>root</systemitem> user).</para>
|
---|
[30edc031] | 95 |
|
---|
| 96 | <screen role="root"><userinput>/etc/rc.d/init.d/sysklogd reload</userinput></screen>
|
---|
| 97 |
|
---|
[539ace5] | 98 | <para>For security reasons, an unprivileged user and group for
|
---|
[b4054a8] | 99 | <application>Fcron</application> should be created (perform as the
|
---|
| 100 | <systemitem class='username'>root</systemitem> user):</para>
|
---|
[30edc031] | 101 |
|
---|
[b785ab29] | 102 | <screen role="root"><userinput>groupadd -g 22 fcron &&
|
---|
| 103 | useradd -d /dev/null -c "Fcron User" -g fcron -s /bin/false -u 22 fcron</userinput></screen>
|
---|
[30edc031] | 104 |
|
---|
[539ace5] | 105 | <para>Install <application>Fcron</application> by running the following
|
---|
[30edc031] | 106 | commands:</para>
|
---|
| 107 |
|
---|
[ceda816] | 108 | <screen><userinput>./configure --without-sendmail --with-boot-install=no &&
|
---|
[30edc031] | 109 | make</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | <para>This package does not come with a test suite.</para>
|
---|
| 112 |
|
---|
| 113 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 114 |
|
---|
| 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
[539ace5] | 122 | <para><parameter>--without-sendmail</parameter>:
|
---|
| 123 | <application>Fcron</application> will use an installed MTA
|
---|
| 124 | to email you the results of the <command>fcron</command> script. Omit the
|
---|
| 125 | switch and use
|
---|
[0619e6d] | 126 | <option>--with-sendmail=<replaceable>[/path/to/MTA]</replaceable></option>
|
---|
[30edc031] | 127 | if you wish to utilize this feature.</para>
|
---|
| 128 |
|
---|
[ceda816] | 129 | <para><parameter>--with-boot-install=no</parameter>: This prevents installation
|
---|
| 130 | of the bootscript included with the package.</para>
|
---|
[30edc031] | 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="configuration">
|
---|
| 135 | <title>Configuring Fcron</title>
|
---|
| 136 |
|
---|
| 137 | <sect3 id="fcron-config">
|
---|
| 138 | <title>Config Files</title>
|
---|
| 139 |
|
---|
| 140 | <para><filename>/etc/fcron.conf</filename>,
|
---|
[539ace5] | 141 | <filename>/etc/fcron.allow</filename>, and
|
---|
[30edc031] | 142 | <filename>/etc/fcron.deny</filename></para>
|
---|
| 143 |
|
---|
| 144 | <indexterm zone="fcron fcron-config">
|
---|
| 145 | <primary sortas="e-etc-fcron.conf">/etc/fcron.conf</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 |
|
---|
| 148 | <indexterm zone="fcron fcron-config">
|
---|
| 149 | <primary sortas="e-etc-fcron.allow">/etc/fcron.allow</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 |
|
---|
| 152 | <indexterm zone="fcron fcron-config">
|
---|
| 153 | <primary sortas="e-etc-fcron.deny">/etc/fcron.deny</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 |
|
---|
| 156 | </sect3>
|
---|
| 157 |
|
---|
| 158 | <sect3>
|
---|
| 159 | <title>Configuration Information</title>
|
---|
| 160 |
|
---|
| 161 | <para>There are no required changes in any of the config files.
|
---|
| 162 | Configuration information can be found in the man page for
|
---|
| 163 | <filename>fcron.conf</filename>.</para>
|
---|
[12b202ed] | 164 |
|
---|
| 165 | <para>The default text editor used is <filename>/usr/bin/vi</filename>, and
|
---|
| 166 | this is installed by LFS.</para>
|
---|
[30edc031] | 167 |
|
---|
[539ace5] | 168 | <para><command>fcron</command> scripts are written using
|
---|
| 169 | <command>fcrontab</command>. Refer to the <command>fcrontab</command> man
|
---|
[30edc031] | 170 | page for proper parameters to address your situation.</para>
|
---|
| 171 |
|
---|
[0619e6d] | 172 | <para id="fcron-pam">If <application>Linux-PAM</application>
|
---|
[539ace5] | 173 | is installed, two PAM configuration files are installed in
|
---|
| 174 | <filename class='directory'>/etc/pam.d</filename>. Alternatively if
|
---|
| 175 | <filename class='directory'>/etc/pam.d</filename> is not used, the installation
|
---|
| 176 | will append two configuration sections to the exiting
|
---|
| 177 | <filename>/etc/pam.conf</filename> file. You should ensure the files match your
|
---|
[30edc031] | 178 | preferences. Modify them as required to suit your needs.</para>
|
---|
| 179 |
|
---|
| 180 | <indexterm zone="fcron fcron-pam">
|
---|
| 181 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 |
|
---|
| 184 | <indexterm zone="fcron fcron-pam">
|
---|
| 185 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 |
|
---|
| 188 | </sect3>
|
---|
| 189 |
|
---|
| 190 | <sect3 id="fcron-init">
|
---|
| 191 | <title>Boot Script</title>
|
---|
| 192 |
|
---|
[0619e6d] | 193 | <para>Install the <filename>/etc/rc.d/init.d/fcron</filename>
|
---|
| 194 | init script from the <xref linkend="intro-important-bootscripts"/>
|
---|
[30edc031] | 195 | package.</para>
|
---|
| 196 |
|
---|
| 197 | <indexterm zone="fcron fcron-init">
|
---|
| 198 | <primary sortas="f-fcron">fcron</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 |
|
---|
| 201 | <screen role="root"><userinput>make install-fcron</userinput></screen>
|
---|
| 202 |
|
---|
| 203 | </sect3>
|
---|
| 204 |
|
---|
| 205 | </sect2>
|
---|
| 206 |
|
---|
| 207 | <sect2 role="content">
|
---|
| 208 | <title>Contents</title>
|
---|
| 209 |
|
---|
| 210 | <segmentedlist>
|
---|
| 211 | <segtitle>Installed Programs</segtitle>
|
---|
| 212 | <segtitle>Installed Libraries</segtitle>
|
---|
| 213 | <segtitle>Installed Directories</segtitle>
|
---|
| 214 |
|
---|
| 215 | <seglistitem>
|
---|
| 216 | <seg>fcron, fcrondyn, fcronsighup, and fcrontab</seg>
|
---|
| 217 | <seg>None</seg>
|
---|
| 218 | <seg>/usr/share/doc/fcron-&fcron-version; and /var/spool/fcron</seg>
|
---|
| 219 | </seglistitem>
|
---|
| 220 | </segmentedlist>
|
---|
| 221 |
|
---|
| 222 | <variablelist>
|
---|
| 223 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 224 | <?dbfo list-presentation="list"?>
|
---|
| 225 | <?dbhtml list-presentation="table"?>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="fcron-prog">
|
---|
| 228 | <term><command>fcron</command></term>
|
---|
| 229 | <listitem>
|
---|
| 230 | <para>is the scheduling daemon.</para>
|
---|
| 231 | <indexterm zone="fcron fcron-prog">
|
---|
| 232 | <primary sortas="b-fcron">fcron</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
| 237 | <varlistentry id="fcrondyn">
|
---|
| 238 | <term><command>fcrondyn</command></term>
|
---|
| 239 | <listitem>
|
---|
[539ace5] | 240 | <para>is a user tool intended to interact with a running
|
---|
[30edc031] | 241 | <command>fcron</command> daemon.</para>
|
---|
| 242 | <indexterm zone="fcron fcrondyn">
|
---|
| 243 | <primary sortas="b-fcrondyn">fcrondyn</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="fcronsighup">
|
---|
| 249 | <term><command>fcronsighup</command></term>
|
---|
| 250 | <listitem>
|
---|
[539ace5] | 251 | <para>instructs <command>fcron</command> to reread the
|
---|
[30edc031] | 252 | <application>Fcron</application> tables.</para>
|
---|
| 253 | <indexterm zone="fcron fcronsighup">
|
---|
| 254 | <primary sortas="b-fcronsighup">fcronsighup</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="fcrontab">
|
---|
| 260 | <term><command>fcrontab</command></term>
|
---|
| 261 | <listitem>
|
---|
[539ace5] | 262 | <para>is a program used to install, edit, list and remove the
|
---|
[30edc031] | 263 | tables used by <command>fcron</command>.</para>
|
---|
| 264 | <indexterm zone="fcron fcrontab">
|
---|
| 265 | <primary sortas="b-fcrontab">fcrontab</primary>
|
---|
| 266 | </indexterm>
|
---|
| 267 | </listitem>
|
---|
| 268 | </varlistentry>
|
---|
| 269 |
|
---|
| 270 | </variablelist>
|
---|
| 271 |
|
---|
| 272 | </sect2>
|
---|
[f45b1953] | 273 |
|
---|
| 274 | </sect1>
|
---|