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