[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">
|
---|
[c1968e6] | 8 | <!ENTITY fcron-download-ftp " ">
|
---|
| 9 | <!-- <!ENTITY fcron-download-ftp "ftp://ftp.seul.org/pub/fcron/fcron-&fcron-version;.src.tar.gz">-->
|
---|
[b9edd3d5] | 10 | <!ENTITY fcron-md5sum "4b031c2fba32a98fa814d1557158b0e9">
|
---|
[65f4210a] | 11 | <!ENTITY fcron-size "584 KB">
|
---|
| 12 | <!ENTITY fcron-buildsize "5.1 MB">
|
---|
[354f5e4d] | 13 | <!ENTITY fcron-time "0.1 SBU">
|
---|
[52d29f7] | 14 | ]>
|
---|
| 15 |
|
---|
[5c5cdbc] | 16 | <sect1 id="fcron" xreflabel="Fcron-&fcron-version;">
|
---|
[30edc031] | 17 | <?dbhtml filename="fcron.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>Fcron-&fcron-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="fcron">
|
---|
| 27 | <primary sortas="a-Fcron">Fcron</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to Fcron</title>
|
---|
| 32 |
|
---|
| 33 | <para>The <application>Fcron</application> package contains a periodical
|
---|
| 34 | command scheduler which aims at replacing <application>Vixie
|
---|
| 35 | Cron</application>.</para>
|
---|
| 36 |
|
---|
[76b8abe] | 37 | &lfs77_checked;
|
---|
[61a8dd8] | 38 |
|
---|
[30edc031] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&fcron-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&fcron-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &fcron-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &fcron-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &fcron-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &fcron-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
[00bf2c9] | 60 | <!--
|
---|
[7ad652c] | 61 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 62 | <itemizedlist spacing="compact">
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Required patch:
|
---|
| 66 | <ulink url="&patch-root;/fcron-&fcron-version;-sendmail_upstream-1.patch"/>
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
[00bf2c9] | 70 | -->
|
---|
[30edc031] | 71 | <bridgehead renderas="sect3">Fcron Dependencies</bridgehead>
|
---|
[bccbdaea] | 72 |
|
---|
[30edc031] | 73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7f5c97e] | 74 | <para role="optional">An <xref linkend="server-mail"/>,
|
---|
[448900a5] | 75 | <ulink url="../postlfs/editors.html">text editor</ulink> (default is
|
---|
| 76 | <command>vi</command> from the <xref linkend="vim"/> package),
|
---|
[b9edd3d5] | 77 | <xref linkend="linux-pam"/>, and
|
---|
[12b202ed] | 78 | <xref linkend="docbook-utils"/>
|
---|
| 79 | </para>
|
---|
[30edc031] | 80 |
|
---|
[1039de3] | 81 | <para condition="html" role="usernotes">User Notes:
|
---|
| 82 | <ulink url="&blfs-wiki;/fcron"/></para>
|
---|
| 83 |
|
---|
[30edc031] | 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of Fcron</title>
|
---|
| 88 |
|
---|
[539ace5] | 89 | <para id="fcron-syslog"><application>Fcron</application> uses the cron facility
|
---|
| 90 | of <command>syslog</command> to log all messages. Since LFS
|
---|
| 91 | does not set up this facility in <filename>/etc/syslog.conf</filename>, it
|
---|
| 92 | needs to be done prior to installing <application>Fcron</application>. This
|
---|
| 93 | command will append the necessary line to the current
|
---|
[b4054a8] | 94 | <filename>/etc/syslog.conf</filename> (perform as the
|
---|
| 95 | <systemitem class='username'>root</systemitem> user):</para>
|
---|
[30edc031] | 96 |
|
---|
| 97 | <indexterm zone="fcron fcron-syslog">
|
---|
| 98 | <primary sortas="e-etc-syslog.conf">/etc/syslog.conf</primary>
|
---|
| 99 | </indexterm>
|
---|
| 100 |
|
---|
| 101 | <screen role="root"><userinput>cat >> /etc/syslog.conf << "EOF"
|
---|
| 102 | <literal># Begin fcron addition to /etc/syslog.conf
|
---|
[1586494] | 103 |
|
---|
[52d29f7] | 104 | cron.* -/var/log/cron.log
|
---|
[1586494] | 105 |
|
---|
[30edc031] | 106 | # End fcron addition</literal>
|
---|
| 107 | EOF</userinput></screen>
|
---|
[1586494] | 108 |
|
---|
[30edc031] | 109 | <para>The configuration file has been modified, so reloading the
|
---|
[b4054a8] | 110 | <command>sysklogd</command> daemon will activate the changes (again as the
|
---|
| 111 | <systemitem class='username'>root</systemitem> user).</para>
|
---|
[30edc031] | 112 |
|
---|
| 113 | <screen role="root"><userinput>/etc/rc.d/init.d/sysklogd reload</userinput></screen>
|
---|
| 114 |
|
---|
[539ace5] | 115 | <para>For security reasons, an unprivileged user and group for
|
---|
[b4054a8] | 116 | <application>Fcron</application> should be created (perform as the
|
---|
| 117 | <systemitem class='username'>root</systemitem> user):</para>
|
---|
[30edc031] | 118 |
|
---|
[b785ab29] | 119 | <screen role="root"><userinput>groupadd -g 22 fcron &&
|
---|
| 120 | useradd -d /dev/null -c "Fcron User" -g fcron -s /bin/false -u 22 fcron</userinput></screen>
|
---|
[30edc031] | 121 |
|
---|
[539ace5] | 122 | <para>Install <application>Fcron</application> by running the following
|
---|
[30edc031] | 123 | commands:</para>
|
---|
| 124 |
|
---|
[b9edd3d5] | 125 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 126 | --sysconfdir=/etc \
|
---|
| 127 | --localstatedir=/var \
|
---|
| 128 | --without-sendmail \
|
---|
| 129 | --with-boot-install=no \
|
---|
| 130 | --with-systemdsystemunitdir=no &&
|
---|
[30edc031] | 131 | make</userinput></screen>
|
---|
| 132 |
|
---|
| 133 | <para>This package does not come with a test suite.</para>
|
---|
| 134 |
|
---|
| 135 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 136 |
|
---|
| 137 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 138 |
|
---|
[65f4210a] | 139 | <para>DESTDIR install must be done as <systemitem class="username">root</systemitem> user.</para>
|
---|
| 140 |
|
---|
[30edc031] | 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="commands">
|
---|
| 144 | <title>Command Explanations</title>
|
---|
[1bbad3f] | 145 | <!--
|
---|
[0d7900a] | 146 | <para><command>autoconf</command>: This command is required to rebuild
|
---|
[1bbad3f] | 147 | <filename>configure</filename> using the fixed input file.</para>-->
|
---|
[0d7900a] | 148 |
|
---|
[482314a] | 149 | <para><parameter>--without-sendmail</parameter>: By default,
|
---|
[73b3b3b] | 150 | <application>Fcron</application> will attempt to use the
|
---|
| 151 | <command>sendmail</command> command from an <xref linkend="server-mail"/>
|
---|
| 152 | package to email you the results of the <command>fcron</command> script.
|
---|
| 153 | This switch is used to disable default email notification. Omit the switch
|
---|
| 154 | to enable the default. Alternatively, you can use the
|
---|
| 155 | <option>--with-sendmail=<replaceable></path/to/MTA
|
---|
| 156 | command></replaceable></option> to use a different mailer command.</para>
|
---|
[30edc031] | 157 |
|
---|
[b9edd3d5] | 158 | <para><parameter>--with-boot-install=no</parameter>: This prevents
|
---|
| 159 | installation of the bootscript included with the package.</para>
|
---|
| 160 |
|
---|
| 161 | <para><parameter>--with-systemdsystemunitdir=no|yes|DIR</parameter>: Use
|
---|
| 162 | no, if you use sysvint; yes, if you use systemd, or specify the directory
|
---|
| 163 | DIR for the systemd units.</para>
|
---|
[30edc031] | 164 |
|
---|
[1039de3] | 165 | <para><option>--with-editor=<replaceable></path/to/editor></replaceable></option>:
|
---|
[448900a5] | 166 | This switch allows you to set the default text editor.</para>
|
---|
[b9edd3d5] | 167 |
|
---|
[71ca71f] | 168 | <para><option>--with-dsssl-dir=<replaceable></path/to/dsssl-stylesheets></replaceable></option>:
|
---|
| 169 | May be used if you have <xref linkend="docbook-utils"/> installed.
|
---|
| 170 | Currently, the dsssl stylesheets are located at
|
---|
| 171 | <filename class="directory">/usr/share/sgml/docbook/dsssl-stylesheets-1.79</filename>.</para>
|
---|
[7afe2f1f] | 172 |
|
---|
[30edc031] | 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | <sect2 role="configuration">
|
---|
| 176 | <title>Configuring Fcron</title>
|
---|
| 177 |
|
---|
| 178 | <sect3 id="fcron-config">
|
---|
| 179 | <title>Config Files</title>
|
---|
| 180 |
|
---|
| 181 | <para><filename>/etc/fcron.conf</filename>,
|
---|
[539ace5] | 182 | <filename>/etc/fcron.allow</filename>, and
|
---|
[30edc031] | 183 | <filename>/etc/fcron.deny</filename></para>
|
---|
| 184 |
|
---|
| 185 | <indexterm zone="fcron fcron-config">
|
---|
| 186 | <primary sortas="e-etc-fcron.conf">/etc/fcron.conf</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 |
|
---|
| 189 | <indexterm zone="fcron fcron-config">
|
---|
| 190 | <primary sortas="e-etc-fcron.allow">/etc/fcron.allow</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 |
|
---|
| 193 | <indexterm zone="fcron fcron-config">
|
---|
| 194 | <primary sortas="e-etc-fcron.deny">/etc/fcron.deny</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 |
|
---|
| 197 | </sect3>
|
---|
| 198 |
|
---|
| 199 | <sect3>
|
---|
| 200 | <title>Configuration Information</title>
|
---|
| 201 |
|
---|
| 202 | <para>There are no required changes in any of the config files.
|
---|
| 203 | Configuration information can be found in the man page for
|
---|
| 204 | <filename>fcron.conf</filename>.</para>
|
---|
[bccbdaea] | 205 |
|
---|
[539ace5] | 206 | <para><command>fcron</command> scripts are written using
|
---|
| 207 | <command>fcrontab</command>. Refer to the <command>fcrontab</command> man
|
---|
[30edc031] | 208 | page for proper parameters to address your situation.</para>
|
---|
| 209 |
|
---|
[0619e6d] | 210 | <para id="fcron-pam">If <application>Linux-PAM</application>
|
---|
[539ace5] | 211 | is installed, two PAM configuration files are installed in
|
---|
| 212 | <filename class='directory'>/etc/pam.d</filename>. Alternatively if
|
---|
| 213 | <filename class='directory'>/etc/pam.d</filename> is not used, the installation
|
---|
[7712824] | 214 | will append two configuration sections to the existing
|
---|
[539ace5] | 215 | <filename>/etc/pam.conf</filename> file. You should ensure the files match your
|
---|
[30edc031] | 216 | preferences. Modify them as required to suit your needs.</para>
|
---|
| 217 |
|
---|
| 218 | <indexterm zone="fcron fcron-pam">
|
---|
| 219 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 |
|
---|
| 222 | <indexterm zone="fcron fcron-pam">
|
---|
| 223 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 |
|
---|
| 226 | </sect3>
|
---|
| 227 |
|
---|
| 228 | <sect3 id="fcron-init">
|
---|
| 229 | <title>Boot Script</title>
|
---|
| 230 |
|
---|
[0619e6d] | 231 | <para>Install the <filename>/etc/rc.d/init.d/fcron</filename>
|
---|
[5254d12] | 232 | init script from the <xref linkend="bootscripts"/>
|
---|
[30edc031] | 233 | package.</para>
|
---|
| 234 |
|
---|
| 235 | <indexterm zone="fcron fcron-init">
|
---|
| 236 | <primary sortas="f-fcron">fcron</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 |
|
---|
| 239 | <screen role="root"><userinput>make install-fcron</userinput></screen>
|
---|
| 240 |
|
---|
| 241 | </sect3>
|
---|
| 242 |
|
---|
| 243 | </sect2>
|
---|
| 244 |
|
---|
| 245 | <sect2 role="content">
|
---|
| 246 | <title>Contents</title>
|
---|
| 247 |
|
---|
| 248 | <segmentedlist>
|
---|
| 249 | <segtitle>Installed Programs</segtitle>
|
---|
| 250 | <segtitle>Installed Libraries</segtitle>
|
---|
| 251 | <segtitle>Installed Directories</segtitle>
|
---|
| 252 |
|
---|
| 253 | <seglistitem>
|
---|
| 254 | <seg>fcron, fcrondyn, fcronsighup, and fcrontab</seg>
|
---|
| 255 | <seg>None</seg>
|
---|
| 256 | <seg>/usr/share/doc/fcron-&fcron-version; and /var/spool/fcron</seg>
|
---|
| 257 | </seglistitem>
|
---|
| 258 | </segmentedlist>
|
---|
| 259 |
|
---|
| 260 | <variablelist>
|
---|
| 261 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 262 | <?dbfo list-presentation="list"?>
|
---|
| 263 | <?dbhtml list-presentation="table"?>
|
---|
| 264 |
|
---|
| 265 | <varlistentry id="fcron-prog">
|
---|
| 266 | <term><command>fcron</command></term>
|
---|
| 267 | <listitem>
|
---|
| 268 | <para>is the scheduling daemon.</para>
|
---|
| 269 | <indexterm zone="fcron fcron-prog">
|
---|
| 270 | <primary sortas="b-fcron">fcron</primary>
|
---|
| 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 |
|
---|
| 275 | <varlistentry id="fcrondyn">
|
---|
| 276 | <term><command>fcrondyn</command></term>
|
---|
| 277 | <listitem>
|
---|
[539ace5] | 278 | <para>is a user tool intended to interact with a running
|
---|
[30edc031] | 279 | <command>fcron</command> daemon.</para>
|
---|
| 280 | <indexterm zone="fcron fcrondyn">
|
---|
| 281 | <primary sortas="b-fcrondyn">fcrondyn</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 |
|
---|
| 286 | <varlistentry id="fcronsighup">
|
---|
| 287 | <term><command>fcronsighup</command></term>
|
---|
| 288 | <listitem>
|
---|
[539ace5] | 289 | <para>instructs <command>fcron</command> to reread the
|
---|
[30edc031] | 290 | <application>Fcron</application> tables.</para>
|
---|
| 291 | <indexterm zone="fcron fcronsighup">
|
---|
| 292 | <primary sortas="b-fcronsighup">fcronsighup</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="fcrontab">
|
---|
| 298 | <term><command>fcrontab</command></term>
|
---|
| 299 | <listitem>
|
---|
[539ace5] | 300 | <para>is a program used to install, edit, list and remove the
|
---|
[30edc031] | 301 | tables used by <command>fcron</command>.</para>
|
---|
| 302 | <indexterm zone="fcron fcrontab">
|
---|
| 303 | <primary sortas="b-fcrontab">fcrontab</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
| 308 | </variablelist>
|
---|
| 309 |
|
---|
| 310 | </sect2>
|
---|
[f45b1953] | 311 |
|
---|
| 312 | </sect1>
|
---|