[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/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">
|
---|
[a8836c4] | 9 | <!ENTITY fcron-md5sum "c85e6eecd0564f37658ae250a491fd31">
|
---|
| 10 | <!ENTITY fcron-size "536 KB">
|
---|
| 11 | <!ENTITY fcron-buildsize "4.7 MB">
|
---|
[354f5e4d] | 12 | <!ENTITY fcron-time "0.1 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>
|
---|
[bccbdaea] | 59 |
|
---|
[30edc031] | 60 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7f5c97e] | 61 | <para role="optional">An <xref linkend="server-mail"/>,
|
---|
[448900a5] | 62 | <ulink url="../postlfs/editors.html">text editor</ulink> (default is
|
---|
| 63 | <command>vi</command> from the <xref linkend="vim"/> package),
|
---|
[6603f8b] | 64 | <xref linkend="linux-pam"/>,
|
---|
[12b202ed] | 65 | <xref linkend="docbook-utils"/>
|
---|
| 66 | </para>
|
---|
[30edc031] | 67 |
|
---|
[1039de3] | 68 | <para condition="html" role="usernotes">User Notes:
|
---|
| 69 | <ulink url="&blfs-wiki;/fcron"/></para>
|
---|
| 70 |
|
---|
[30edc031] | 71 | </sect2>
|
---|
| 72 |
|
---|
| 73 | <sect2 role="installation">
|
---|
| 74 | <title>Installation of Fcron</title>
|
---|
| 75 |
|
---|
[539ace5] | 76 | <para id="fcron-syslog"><application>Fcron</application> uses the cron facility
|
---|
| 77 | of <command>syslog</command> to log all messages. Since LFS
|
---|
| 78 | does not set up this facility in <filename>/etc/syslog.conf</filename>, it
|
---|
| 79 | needs to be done prior to installing <application>Fcron</application>. This
|
---|
| 80 | command will append the necessary line to the current
|
---|
[b4054a8] | 81 | <filename>/etc/syslog.conf</filename> (perform as the
|
---|
| 82 | <systemitem class='username'>root</systemitem> user):</para>
|
---|
[30edc031] | 83 |
|
---|
| 84 | <indexterm zone="fcron fcron-syslog">
|
---|
| 85 | <primary sortas="e-etc-syslog.conf">/etc/syslog.conf</primary>
|
---|
| 86 | </indexterm>
|
---|
| 87 |
|
---|
| 88 | <screen role="root"><userinput>cat >> /etc/syslog.conf << "EOF"
|
---|
| 89 | <literal># Begin fcron addition to /etc/syslog.conf
|
---|
[1586494] | 90 |
|
---|
[52d29f7] | 91 | cron.* -/var/log/cron.log
|
---|
[1586494] | 92 |
|
---|
[30edc031] | 93 | # End fcron addition</literal>
|
---|
| 94 | EOF</userinput></screen>
|
---|
[1586494] | 95 |
|
---|
[30edc031] | 96 | <para>The configuration file has been modified, so reloading the
|
---|
[b4054a8] | 97 | <command>sysklogd</command> daemon will activate the changes (again as the
|
---|
| 98 | <systemitem class='username'>root</systemitem> user).</para>
|
---|
[30edc031] | 99 |
|
---|
| 100 | <screen role="root"><userinput>/etc/rc.d/init.d/sysklogd reload</userinput></screen>
|
---|
| 101 |
|
---|
[539ace5] | 102 | <para>For security reasons, an unprivileged user and group for
|
---|
[b4054a8] | 103 | <application>Fcron</application> should be created (perform as the
|
---|
| 104 | <systemitem class='username'>root</systemitem> user):</para>
|
---|
[30edc031] | 105 |
|
---|
[b785ab29] | 106 | <screen role="root"><userinput>groupadd -g 22 fcron &&
|
---|
| 107 | useradd -d /dev/null -c "Fcron User" -g fcron -s /bin/false -u 22 fcron</userinput></screen>
|
---|
[30edc031] | 108 |
|
---|
[539ace5] | 109 | <para>Install <application>Fcron</application> by running the following
|
---|
[30edc031] | 110 | commands:</para>
|
---|
| 111 |
|
---|
[a8836c4] | 112 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 113 | --localstatedir=/var --without-sendmail --with-boot-install=no &&
|
---|
[30edc031] | 114 | make</userinput></screen>
|
---|
| 115 |
|
---|
| 116 | <para>This package does not come with a test suite.</para>
|
---|
| 117 |
|
---|
| 118 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 119 |
|
---|
| 120 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="commands">
|
---|
| 125 | <title>Command Explanations</title>
|
---|
| 126 |
|
---|
[482314a] | 127 | <para><parameter>--without-sendmail</parameter>: By default,
|
---|
[73b3b3b] | 128 | <application>Fcron</application> will attempt to use the
|
---|
| 129 | <command>sendmail</command> command from an <xref linkend="server-mail"/>
|
---|
| 130 | package to email you the results of the <command>fcron</command> script.
|
---|
| 131 | This switch is used to disable default email notification. Omit the switch
|
---|
| 132 | to enable the default. Alternatively, you can use the
|
---|
| 133 | <option>--with-sendmail=<replaceable></path/to/MTA
|
---|
| 134 | command></replaceable></option> to use a different mailer command.</para>
|
---|
[30edc031] | 135 |
|
---|
[ceda816] | 136 | <para><parameter>--with-boot-install=no</parameter>: This prevents installation
|
---|
| 137 | of the bootscript included with the package.</para>
|
---|
[30edc031] | 138 |
|
---|
[1039de3] | 139 | <para><option>--with-editor=<replaceable></path/to/editor></replaceable></option>:
|
---|
[448900a5] | 140 | This switch allows you to set the default text editor.</para>
|
---|
| 141 |
|
---|
[30edc031] | 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="configuration">
|
---|
| 145 | <title>Configuring Fcron</title>
|
---|
| 146 |
|
---|
| 147 | <sect3 id="fcron-config">
|
---|
| 148 | <title>Config Files</title>
|
---|
| 149 |
|
---|
| 150 | <para><filename>/etc/fcron.conf</filename>,
|
---|
[539ace5] | 151 | <filename>/etc/fcron.allow</filename>, and
|
---|
[30edc031] | 152 | <filename>/etc/fcron.deny</filename></para>
|
---|
| 153 |
|
---|
| 154 | <indexterm zone="fcron fcron-config">
|
---|
| 155 | <primary sortas="e-etc-fcron.conf">/etc/fcron.conf</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 |
|
---|
| 158 | <indexterm zone="fcron fcron-config">
|
---|
| 159 | <primary sortas="e-etc-fcron.allow">/etc/fcron.allow</primary>
|
---|
| 160 | </indexterm>
|
---|
| 161 |
|
---|
| 162 | <indexterm zone="fcron fcron-config">
|
---|
| 163 | <primary sortas="e-etc-fcron.deny">/etc/fcron.deny</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 |
|
---|
| 166 | </sect3>
|
---|
| 167 |
|
---|
| 168 | <sect3>
|
---|
| 169 | <title>Configuration Information</title>
|
---|
| 170 |
|
---|
| 171 | <para>There are no required changes in any of the config files.
|
---|
| 172 | Configuration information can be found in the man page for
|
---|
| 173 | <filename>fcron.conf</filename>.</para>
|
---|
[bccbdaea] | 174 |
|
---|
[539ace5] | 175 | <para><command>fcron</command> scripts are written using
|
---|
| 176 | <command>fcrontab</command>. Refer to the <command>fcrontab</command> man
|
---|
[30edc031] | 177 | page for proper parameters to address your situation.</para>
|
---|
| 178 |
|
---|
[0619e6d] | 179 | <para id="fcron-pam">If <application>Linux-PAM</application>
|
---|
[539ace5] | 180 | is installed, two PAM configuration files are installed in
|
---|
| 181 | <filename class='directory'>/etc/pam.d</filename>. Alternatively if
|
---|
| 182 | <filename class='directory'>/etc/pam.d</filename> is not used, the installation
|
---|
| 183 | will append two configuration sections to the exiting
|
---|
| 184 | <filename>/etc/pam.conf</filename> file. You should ensure the files match your
|
---|
[30edc031] | 185 | preferences. Modify them as required to suit your needs.</para>
|
---|
| 186 |
|
---|
| 187 | <indexterm zone="fcron fcron-pam">
|
---|
| 188 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 |
|
---|
| 191 | <indexterm zone="fcron fcron-pam">
|
---|
| 192 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 |
|
---|
| 195 | </sect3>
|
---|
| 196 |
|
---|
| 197 | <sect3 id="fcron-init">
|
---|
| 198 | <title>Boot Script</title>
|
---|
| 199 |
|
---|
[0619e6d] | 200 | <para>Install the <filename>/etc/rc.d/init.d/fcron</filename>
|
---|
[5254d12] | 201 | init script from the <xref linkend="bootscripts"/>
|
---|
[30edc031] | 202 | package.</para>
|
---|
| 203 |
|
---|
| 204 | <indexterm zone="fcron fcron-init">
|
---|
| 205 | <primary sortas="f-fcron">fcron</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 |
|
---|
| 208 | <screen role="root"><userinput>make install-fcron</userinput></screen>
|
---|
| 209 |
|
---|
| 210 | </sect3>
|
---|
| 211 |
|
---|
| 212 | </sect2>
|
---|
| 213 |
|
---|
| 214 | <sect2 role="content">
|
---|
| 215 | <title>Contents</title>
|
---|
| 216 |
|
---|
| 217 | <segmentedlist>
|
---|
| 218 | <segtitle>Installed Programs</segtitle>
|
---|
| 219 | <segtitle>Installed Libraries</segtitle>
|
---|
| 220 | <segtitle>Installed Directories</segtitle>
|
---|
| 221 |
|
---|
| 222 | <seglistitem>
|
---|
| 223 | <seg>fcron, fcrondyn, fcronsighup, and fcrontab</seg>
|
---|
| 224 | <seg>None</seg>
|
---|
| 225 | <seg>/usr/share/doc/fcron-&fcron-version; and /var/spool/fcron</seg>
|
---|
| 226 | </seglistitem>
|
---|
| 227 | </segmentedlist>
|
---|
| 228 |
|
---|
| 229 | <variablelist>
|
---|
| 230 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 231 | <?dbfo list-presentation="list"?>
|
---|
| 232 | <?dbhtml list-presentation="table"?>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="fcron-prog">
|
---|
| 235 | <term><command>fcron</command></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>is the scheduling daemon.</para>
|
---|
| 238 | <indexterm zone="fcron fcron-prog">
|
---|
| 239 | <primary sortas="b-fcron">fcron</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="fcrondyn">
|
---|
| 245 | <term><command>fcrondyn</command></term>
|
---|
| 246 | <listitem>
|
---|
[539ace5] | 247 | <para>is a user tool intended to interact with a running
|
---|
[30edc031] | 248 | <command>fcron</command> daemon.</para>
|
---|
| 249 | <indexterm zone="fcron fcrondyn">
|
---|
| 250 | <primary sortas="b-fcrondyn">fcrondyn</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="fcronsighup">
|
---|
| 256 | <term><command>fcronsighup</command></term>
|
---|
| 257 | <listitem>
|
---|
[539ace5] | 258 | <para>instructs <command>fcron</command> to reread the
|
---|
[30edc031] | 259 | <application>Fcron</application> tables.</para>
|
---|
| 260 | <indexterm zone="fcron fcronsighup">
|
---|
| 261 | <primary sortas="b-fcronsighup">fcronsighup</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="fcrontab">
|
---|
| 267 | <term><command>fcrontab</command></term>
|
---|
| 268 | <listitem>
|
---|
[539ace5] | 269 | <para>is a program used to install, edit, list and remove the
|
---|
[30edc031] | 270 | tables used by <command>fcron</command>.</para>
|
---|
| 271 | <indexterm zone="fcron fcrontab">
|
---|
| 272 | <primary sortas="b-fcrontab">fcrontab</primary>
|
---|
| 273 | </indexterm>
|
---|
| 274 | </listitem>
|
---|
| 275 | </varlistentry>
|
---|
| 276 |
|
---|
| 277 | </variablelist>
|
---|
| 278 |
|
---|
| 279 | </sect2>
|
---|
[f45b1953] | 280 |
|
---|
| 281 | </sect1>
|
---|