1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/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 " ">
|
---|
9 | <!-- <!ENTITY fcron-download-ftp "ftp://ftp.seul.org/pub/fcron/fcron-&fcron-version;.src.tar.gz">-->
|
---|
10 | <!ENTITY fcron-md5sum "4b031c2fba32a98fa814d1557158b0e9">
|
---|
11 | <!ENTITY fcron-size "584 KB">
|
---|
12 | <!ENTITY fcron-buildsize "5.1 MB">
|
---|
13 | <!ENTITY fcron-time "0.1 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="fcron" xreflabel="Fcron-&fcron-version;">
|
---|
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 |
|
---|
37 | &lfs77_checked;
|
---|
38 |
|
---|
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>
|
---|
60 | <!--
|
---|
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>
|
---|
70 | -->
|
---|
71 | <bridgehead renderas="sect3">Fcron Dependencies</bridgehead>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
74 | <para role="optional">An <xref linkend="server-mail"/>,
|
---|
75 | <ulink url="../postlfs/editors.html">text editor</ulink> (default is
|
---|
76 | <command>vi</command> from the <xref linkend="vim"/> package),
|
---|
77 | <xref linkend="linux-pam"/>, and
|
---|
78 | <xref linkend="docbook-utils"/>
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | <para condition="html" role="usernotes">User Notes:
|
---|
82 | <ulink url="&blfs-wiki;/fcron"/></para>
|
---|
83 |
|
---|
84 | </sect2>
|
---|
85 |
|
---|
86 | <sect2 role="installation">
|
---|
87 | <title>Installation of Fcron</title>
|
---|
88 |
|
---|
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
|
---|
94 | <filename>/etc/syslog.conf</filename> (perform as the
|
---|
95 | <systemitem class='username'>root</systemitem> user):</para>
|
---|
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
|
---|
103 |
|
---|
104 | cron.* -/var/log/cron.log
|
---|
105 |
|
---|
106 | # End fcron addition</literal>
|
---|
107 | EOF</userinput></screen>
|
---|
108 |
|
---|
109 | <para>The configuration file has been modified, so reloading the
|
---|
110 | <command>sysklogd</command> daemon will activate the changes (again as the
|
---|
111 | <systemitem class='username'>root</systemitem> user).</para>
|
---|
112 |
|
---|
113 | <screen role="root"><userinput>/etc/rc.d/init.d/sysklogd reload</userinput></screen>
|
---|
114 |
|
---|
115 | <para>For security reasons, an unprivileged user and group for
|
---|
116 | <application>Fcron</application> should be created (perform as the
|
---|
117 | <systemitem class='username'>root</systemitem> user):</para>
|
---|
118 |
|
---|
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>
|
---|
121 |
|
---|
122 | <para>Install <application>Fcron</application> by running the following
|
---|
123 | commands:</para>
|
---|
124 |
|
---|
125 | <screen><userinput>./configure --prefix=/usr \
|
---|
126 | --sysconfdir=/etc \
|
---|
127 | --localstatedir=/var \
|
---|
128 | --without-sendmail \
|
---|
129 | --with-boot-install=no \
|
---|
130 | --with-systemdsystemunitdir=no &&
|
---|
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 |
|
---|
139 | <para>DESTDIR install must be done as <systemitem class="username">root</systemitem> user.</para>
|
---|
140 |
|
---|
141 | </sect2>
|
---|
142 |
|
---|
143 | <sect2 role="commands">
|
---|
144 | <title>Command Explanations</title>
|
---|
145 | <!--
|
---|
146 | <para><command>autoconf</command>: This command is required to rebuild
|
---|
147 | <filename>configure</filename> using the fixed input file.</para>-->
|
---|
148 |
|
---|
149 | <para><parameter>--without-sendmail</parameter>: By default,
|
---|
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>
|
---|
157 |
|
---|
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>
|
---|
164 |
|
---|
165 | <para><option>--with-editor=<replaceable></path/to/editor></replaceable></option>:
|
---|
166 | This switch allows you to set the default text editor.</para>
|
---|
167 |
|
---|
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>
|
---|
172 |
|
---|
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>,
|
---|
182 | <filename>/etc/fcron.allow</filename>, and
|
---|
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>
|
---|
205 |
|
---|
206 | <para><command>fcron</command> scripts are written using
|
---|
207 | <command>fcrontab</command>. Refer to the <command>fcrontab</command> man
|
---|
208 | page for proper parameters to address your situation.</para>
|
---|
209 |
|
---|
210 | <para id="fcron-pam">If <application>Linux-PAM</application>
|
---|
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
|
---|
214 | will append two configuration sections to the existing
|
---|
215 | <filename>/etc/pam.conf</filename> file. You should ensure the files match your
|
---|
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 |
|
---|
231 | <para>Install the <filename>/etc/rc.d/init.d/fcron</filename>
|
---|
232 | init script from the <xref linkend="bootscripts"/>
|
---|
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>
|
---|
278 | <para>is a user tool intended to interact with a running
|
---|
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>
|
---|
289 | <para>instructs <command>fcron</command> to reread the
|
---|
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>
|
---|
300 | <para>is a program used to install, edit, list and remove the
|
---|
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>
|
---|
311 |
|
---|
312 | </sect1>
|
---|