[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 |
|
---|
[c569acc5] | 37 | &lfs7a_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 |
|
---|
[96a04dff] | 89 | <para id="fcron-syslog" revision="sysv"><application>Fcron</application>
|
---|
| 90 | uses the cron facility of <command>syslog</command> to log all messages.
|
---|
| 91 | Since LFS does not set up this facility in
|
---|
| 92 | <filename>/etc/syslog.conf</filename>, it needs to be done prior to
|
---|
| 93 | installing <application>Fcron</application>. This command will append the
|
---|
| 94 | necessary line to the current <filename>/etc/syslog.conf</filename>
|
---|
| 95 | (perform as the <systemitem class='username'>root</systemitem> user):</para>
|
---|
| 96 |
|
---|
| 97 | <indexterm zone="fcron fcron-syslog" revision="sysv">
|
---|
[30edc031] | 98 | <primary sortas="e-etc-syslog.conf">/etc/syslog.conf</primary>
|
---|
| 99 | </indexterm>
|
---|
| 100 |
|
---|
[96a04dff] | 101 | <screen role="root" revision="sysv"><userinput>cat >> /etc/syslog.conf << "EOF"
|
---|
[30edc031] | 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 |
|
---|
[96a04dff] | 109 | <para revision="sysv">The configuration file has been modified, so reloading
|
---|
| 110 | the <command>sysklogd</command> daemon will activate the changes (again as
|
---|
| 111 | the <systemitem class='username'>root</systemitem> user).</para>
|
---|
[30edc031] | 112 |
|
---|
[96a04dff] | 113 | <screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/sysklogd reload</userinput></screen>
|
---|
[30edc031] | 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 |
|
---|
[5c9e998] | 125 | <screen revision="sysv"><userinput>./configure --prefix=/usr \
|
---|
[b9edd3d5] | 126 | --sysconfdir=/etc \
|
---|
| 127 | --localstatedir=/var \
|
---|
| 128 | --without-sendmail \
|
---|
| 129 | --with-boot-install=no \
|
---|
| 130 | --with-systemdsystemunitdir=no &&
|
---|
[30edc031] | 131 | make</userinput></screen>
|
---|
| 132 |
|
---|
[5c9e998] | 133 | <screen revision="systemd"><userinput>./configure --prefix=/usr \
|
---|
| 134 | --sysconfdir=/etc \
|
---|
| 135 | --localstatedir=/var \
|
---|
| 136 | --without-sendmail \
|
---|
| 137 | --with-boot-install=no &&
|
---|
| 138 | make</userinput></screen>
|
---|
| 139 |
|
---|
[30edc031] | 140 | <para>This package does not come with a test suite.</para>
|
---|
| 141 |
|
---|
| 142 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 143 |
|
---|
| 144 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 145 |
|
---|
[65f4210a] | 146 | <para>DESTDIR install must be done as <systemitem class="username">root</systemitem> user.</para>
|
---|
| 147 |
|
---|
[30edc031] | 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="commands">
|
---|
| 151 | <title>Command Explanations</title>
|
---|
[1bbad3f] | 152 | <!--
|
---|
[0d7900a] | 153 | <para><command>autoconf</command>: This command is required to rebuild
|
---|
[1bbad3f] | 154 | <filename>configure</filename> using the fixed input file.</para>-->
|
---|
[0d7900a] | 155 |
|
---|
[482314a] | 156 | <para><parameter>--without-sendmail</parameter>: By default,
|
---|
[73b3b3b] | 157 | <application>Fcron</application> will attempt to use the
|
---|
| 158 | <command>sendmail</command> command from an <xref linkend="server-mail"/>
|
---|
| 159 | package to email you the results of the <command>fcron</command> script.
|
---|
| 160 | This switch is used to disable default email notification. Omit the switch
|
---|
| 161 | to enable the default. Alternatively, you can use the
|
---|
| 162 | <option>--with-sendmail=<replaceable></path/to/MTA
|
---|
| 163 | command></replaceable></option> to use a different mailer command.</para>
|
---|
[30edc031] | 164 |
|
---|
[b9edd3d5] | 165 | <para><parameter>--with-boot-install=no</parameter>: This prevents
|
---|
| 166 | installation of the bootscript included with the package.</para>
|
---|
| 167 |
|
---|
[f1d7196] | 168 | <para revision="sysv"><parameter>--with-systemdsystemunitdir=no</parameter>:
|
---|
| 169 | This prevents building the <application>systemd</application> units, which
|
---|
| 170 | are not needed for a <application>SYS V</application> system.</para>
|
---|
[30edc031] | 171 |
|
---|
[1039de3] | 172 | <para><option>--with-editor=<replaceable></path/to/editor></replaceable></option>:
|
---|
[448900a5] | 173 | This switch allows you to set the default text editor.</para>
|
---|
[b9edd3d5] | 174 |
|
---|
[71ca71f] | 175 | <para><option>--with-dsssl-dir=<replaceable></path/to/dsssl-stylesheets></replaceable></option>:
|
---|
| 176 | May be used if you have <xref linkend="docbook-utils"/> installed.
|
---|
| 177 | Currently, the dsssl stylesheets are located at
|
---|
| 178 | <filename class="directory">/usr/share/sgml/docbook/dsssl-stylesheets-1.79</filename>.</para>
|
---|
[7afe2f1f] | 179 |
|
---|
[30edc031] | 180 | </sect2>
|
---|
| 181 |
|
---|
| 182 | <sect2 role="configuration">
|
---|
| 183 | <title>Configuring Fcron</title>
|
---|
| 184 |
|
---|
| 185 | <sect3 id="fcron-config">
|
---|
| 186 | <title>Config Files</title>
|
---|
| 187 |
|
---|
| 188 | <para><filename>/etc/fcron.conf</filename>,
|
---|
[539ace5] | 189 | <filename>/etc/fcron.allow</filename>, and
|
---|
[30edc031] | 190 | <filename>/etc/fcron.deny</filename></para>
|
---|
| 191 |
|
---|
| 192 | <indexterm zone="fcron fcron-config">
|
---|
| 193 | <primary sortas="e-etc-fcron.conf">/etc/fcron.conf</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 |
|
---|
| 196 | <indexterm zone="fcron fcron-config">
|
---|
| 197 | <primary sortas="e-etc-fcron.allow">/etc/fcron.allow</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 |
|
---|
| 200 | <indexterm zone="fcron fcron-config">
|
---|
| 201 | <primary sortas="e-etc-fcron.deny">/etc/fcron.deny</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 |
|
---|
| 204 | </sect3>
|
---|
| 205 |
|
---|
| 206 | <sect3>
|
---|
| 207 | <title>Configuration Information</title>
|
---|
| 208 |
|
---|
| 209 | <para>There are no required changes in any of the config files.
|
---|
| 210 | Configuration information can be found in the man page for
|
---|
| 211 | <filename>fcron.conf</filename>.</para>
|
---|
[bccbdaea] | 212 |
|
---|
[539ace5] | 213 | <para><command>fcron</command> scripts are written using
|
---|
| 214 | <command>fcrontab</command>. Refer to the <command>fcrontab</command> man
|
---|
[30edc031] | 215 | page for proper parameters to address your situation.</para>
|
---|
| 216 |
|
---|
[0619e6d] | 217 | <para id="fcron-pam">If <application>Linux-PAM</application>
|
---|
[539ace5] | 218 | is installed, two PAM configuration files are installed in
|
---|
| 219 | <filename class='directory'>/etc/pam.d</filename>. Alternatively if
|
---|
[96a04dff] | 220 | <filename class='directory'>/etc/pam.d</filename> is not used, the
|
---|
| 221 | installation will append two configuration sections to the existing
|
---|
| 222 | <filename>/etc/pam.conf</filename> file. You should ensure the files match your preferences. Modify them as required to suit your needs.</para>
|
---|
[30edc031] | 223 |
|
---|
| 224 | <indexterm zone="fcron fcron-pam">
|
---|
| 225 | <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
|
---|
| 226 | </indexterm>
|
---|
| 227 |
|
---|
| 228 | <indexterm zone="fcron fcron-pam">
|
---|
| 229 | <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 |
|
---|
| 232 | </sect3>
|
---|
| 233 |
|
---|
| 234 | <sect3 id="fcron-init">
|
---|
[96a04dff] | 235 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 236 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
[30edc031] | 237 |
|
---|
[96a04dff] | 238 | <para revision="sysv">Install the
|
---|
| 239 | <filename>/etc/rc.d/init.d/fcron</filename> init script from the
|
---|
| 240 | <xref linkend="bootscripts"/> package.</para>
|
---|
| 241 |
|
---|
| 242 | <para revision="systemd">Enable <application>fcron</application> to start
|
---|
| 243 | at boot using the previously installed systemd unit.</para>
|
---|
[30edc031] | 244 |
|
---|
| 245 | <indexterm zone="fcron fcron-init">
|
---|
| 246 | <primary sortas="f-fcron">fcron</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 |
|
---|
[96a04dff] | 249 | <screen role="root" revision="sysv"><userinput>make install-fcron</userinput></screen>
|
---|
| 250 |
|
---|
| 251 | <screen role="root" revision="systemd"><userinput>systemctl enable fcron</userinput></screen>
|
---|
[30edc031] | 252 |
|
---|
| 253 | </sect3>
|
---|
| 254 |
|
---|
| 255 | </sect2>
|
---|
| 256 |
|
---|
| 257 | <sect2 role="content">
|
---|
| 258 | <title>Contents</title>
|
---|
| 259 |
|
---|
| 260 | <segmentedlist>
|
---|
| 261 | <segtitle>Installed Programs</segtitle>
|
---|
| 262 | <segtitle>Installed Libraries</segtitle>
|
---|
| 263 | <segtitle>Installed Directories</segtitle>
|
---|
| 264 |
|
---|
| 265 | <seglistitem>
|
---|
| 266 | <seg>fcron, fcrondyn, fcronsighup, and fcrontab</seg>
|
---|
| 267 | <seg>None</seg>
|
---|
| 268 | <seg>/usr/share/doc/fcron-&fcron-version; and /var/spool/fcron</seg>
|
---|
| 269 | </seglistitem>
|
---|
| 270 | </segmentedlist>
|
---|
| 271 |
|
---|
| 272 | <variablelist>
|
---|
| 273 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 274 | <?dbfo list-presentation="list"?>
|
---|
| 275 | <?dbhtml list-presentation="table"?>
|
---|
| 276 |
|
---|
| 277 | <varlistentry id="fcron-prog">
|
---|
| 278 | <term><command>fcron</command></term>
|
---|
| 279 | <listitem>
|
---|
| 280 | <para>is the scheduling daemon.</para>
|
---|
| 281 | <indexterm zone="fcron fcron-prog">
|
---|
| 282 | <primary sortas="b-fcron">fcron</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 | </listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="fcrondyn">
|
---|
| 288 | <term><command>fcrondyn</command></term>
|
---|
| 289 | <listitem>
|
---|
[539ace5] | 290 | <para>is a user tool intended to interact with a running
|
---|
[30edc031] | 291 | <command>fcron</command> daemon.</para>
|
---|
| 292 | <indexterm zone="fcron fcrondyn">
|
---|
| 293 | <primary sortas="b-fcrondyn">fcrondyn</primary>
|
---|
| 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
| 297 |
|
---|
| 298 | <varlistentry id="fcronsighup">
|
---|
| 299 | <term><command>fcronsighup</command></term>
|
---|
| 300 | <listitem>
|
---|
[539ace5] | 301 | <para>instructs <command>fcron</command> to reread the
|
---|
[30edc031] | 302 | <application>Fcron</application> tables.</para>
|
---|
| 303 | <indexterm zone="fcron fcronsighup">
|
---|
| 304 | <primary sortas="b-fcronsighup">fcronsighup</primary>
|
---|
| 305 | </indexterm>
|
---|
| 306 | </listitem>
|
---|
| 307 | </varlistentry>
|
---|
| 308 |
|
---|
| 309 | <varlistentry id="fcrontab">
|
---|
| 310 | <term><command>fcrontab</command></term>
|
---|
| 311 | <listitem>
|
---|
[539ace5] | 312 | <para>is a program used to install, edit, list and remove the
|
---|
[30edc031] | 313 | tables used by <command>fcron</command>.</para>
|
---|
| 314 | <indexterm zone="fcron fcrontab">
|
---|
| 315 | <primary sortas="b-fcrontab">fcrontab</primary>
|
---|
| 316 | </indexterm>
|
---|
| 317 | </listitem>
|
---|
| 318 | </varlistentry>
|
---|
| 319 |
|
---|
| 320 | </variablelist>
|
---|
| 321 |
|
---|
| 322 | </sect2>
|
---|
[f45b1953] | 323 |
|
---|
| 324 | </sect1>
|
---|