source: general/sysutils/fcron.xml@ 99a99c6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 99a99c6 was 99a99c6, checked in by Thomas Trepl <thomas@…>, 11 years ago

Upgrade to version 3.1.1 (#3743) and fix an issue with --without-sendmail (#3661)

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10957 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.3 KB
Line 
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 "ftp://ftp.seul.org/pub/fcron/fcron-&fcron-version;.src.tar.gz">
9 <!ENTITY fcron-md5sum "230b91f308e6012957a3a71a94f03838">
10 <!ENTITY fcron-size "583 KB">
11 <!ENTITY fcron-buildsize "3.6 MB">
12 <!ENTITY fcron-time "0.1 SBU">
13]>
14
15<sect1 id="fcron" xreflabel="Fcron-&fcron-version;">
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 &lfs72_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&fcron-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&fcron-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &fcron-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &fcron-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &fcron-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &fcron-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Fcron Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Optional</bridgehead>
63 <para role="optional">An <xref linkend="server-mail"/>,
64 <ulink url="../postlfs/editors.html">text editor</ulink> (default is
65 <command>vi</command> from the <xref linkend="vim"/> package),
66 <xref linkend="linux-pam"/>,
67 <xref linkend="docbook-utils"/>
68 </para>
69
70 <para condition="html" role="usernotes">User Notes:
71 <ulink url="&blfs-wiki;/fcron"/></para>
72
73 </sect2>
74
75 <sect2 role="installation">
76 <title>Installation of Fcron</title>
77
78 <para id="fcron-syslog"><application>Fcron</application> uses the cron facility
79 of <command>syslog</command> to log all messages. Since LFS
80 does not set up this facility in <filename>/etc/syslog.conf</filename>, it
81 needs to be done prior to installing <application>Fcron</application>. This
82 command will append the necessary line to the current
83 <filename>/etc/syslog.conf</filename> (perform as the
84 <systemitem class='username'>root</systemitem> user):</para>
85
86 <indexterm zone="fcron fcron-syslog">
87 <primary sortas="e-etc-syslog.conf">/etc/syslog.conf</primary>
88 </indexterm>
89
90<screen role="root"><userinput>cat &gt;&gt; /etc/syslog.conf &lt;&lt; "EOF"
91<literal># Begin fcron addition to /etc/syslog.conf
92
93cron.* -/var/log/cron.log
94
95# End fcron addition</literal>
96EOF</userinput></screen>
97
98 <para>The configuration file has been modified, so reloading the
99 <command>sysklogd</command> daemon will activate the changes (again as the
100 <systemitem class='username'>root</systemitem> user).</para>
101
102<screen role="root"><userinput>/etc/rc.d/init.d/sysklogd reload</userinput></screen>
103
104 <para>For security reasons, an unprivileged user and group for
105 <application>Fcron</application> should be created (perform as the
106 <systemitem class='username'>root</systemitem> user):</para>
107
108<screen role="root"><userinput>groupadd -g 22 fcron &amp;&amp;
109useradd -d /dev/null -c "Fcron User" -g fcron -s /bin/false -u 22 fcron</userinput></screen>
110
111 <para><application>Fcron</application> does not handle the <option>--without-sendmail</option>
112 option correctly. Fix it by running he following commands:</para>
113
114<screen><userinput>sed -i.bak 's/x"$USE_SENDMAIL" != x ;/x"$USE_SENDMAIL" != x0 ;/' configure &amp;&amp;
115sed -i.bak '/clear_forcemail(cl->cl_option);/d' fileconf.c</userinput></screen>
116
117 <para>Install <application>Fcron</application> by running the following
118 commands:</para>
119
120<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
121 --localstatedir=/var --without-sendmail --with-boot-install=no \
122 --with-dsssl-dir=/usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &amp;&amp;
123make</userinput></screen>
124
125 <para>This package does not come with a test suite.</para>
126
127 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
128
129<screen role="root"><userinput>make install</userinput></screen>
130
131 </sect2>
132
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <para><parameter>--without-sendmail</parameter>: By default,
137 <application>Fcron</application> will attempt to use the
138 <command>sendmail</command> command from an <xref linkend="server-mail"/>
139 package to email you the results of the <command>fcron</command> script.
140 This switch is used to disable default email notification. Omit the switch
141 to enable the default. Alternatively, you can use the
142 <option>--with-sendmail=<replaceable>&lt;/path/to/MTA
143 command&gt;</replaceable></option> to use a different mailer command.</para>
144
145 <para><parameter>--with-boot-install=no</parameter>: This prevents installation
146 of the bootscript included with the package.</para>
147
148 <para><option>--with-editor=<replaceable>&lt;/path/to/editor&gt;</replaceable></option>:
149 This switch allows you to set the default text editor.</para>
150
151 <para><option>--with-dsssl-dir=<replaceable>&lt;/path/to/dsssl-stylesheets&gt;</replaceable></option>:
152 Avoid a warning message about not finding the DSSSL stylesheets.</para>
153
154 </sect2>
155
156 <sect2 role="configuration">
157 <title>Configuring Fcron</title>
158
159 <sect3 id="fcron-config">
160 <title>Config Files</title>
161
162 <para><filename>/etc/fcron.conf</filename>,
163 <filename>/etc/fcron.allow</filename>, and
164 <filename>/etc/fcron.deny</filename></para>
165
166 <indexterm zone="fcron fcron-config">
167 <primary sortas="e-etc-fcron.conf">/etc/fcron.conf</primary>
168 </indexterm>
169
170 <indexterm zone="fcron fcron-config">
171 <primary sortas="e-etc-fcron.allow">/etc/fcron.allow</primary>
172 </indexterm>
173
174 <indexterm zone="fcron fcron-config">
175 <primary sortas="e-etc-fcron.deny">/etc/fcron.deny</primary>
176 </indexterm>
177
178 </sect3>
179
180 <sect3>
181 <title>Configuration Information</title>
182
183 <para>There are no required changes in any of the config files.
184 Configuration information can be found in the man page for
185 <filename>fcron.conf</filename>.</para>
186
187 <para><command>fcron</command> scripts are written using
188 <command>fcrontab</command>. Refer to the <command>fcrontab</command> man
189 page for proper parameters to address your situation.</para>
190
191 <para id="fcron-pam">If <application>Linux-PAM</application>
192 is installed, two PAM configuration files are installed in
193 <filename class='directory'>/etc/pam.d</filename>. Alternatively if
194 <filename class='directory'>/etc/pam.d</filename> is not used, the installation
195 will append two configuration sections to the existing
196 <filename>/etc/pam.conf</filename> file. You should ensure the files match your
197 preferences. Modify them as required to suit your needs.</para>
198
199 <indexterm zone="fcron fcron-pam">
200 <primary sortas="e-etc-pam.d">/etc/pam.d/*</primary>
201 </indexterm>
202
203 <indexterm zone="fcron fcron-pam">
204 <primary sortas="e-etc-pam.conf">/etc/pam.conf</primary>
205 </indexterm>
206
207 </sect3>
208
209 <sect3 id="fcron-init">
210 <title>Boot Script</title>
211
212 <para>Install the <filename>/etc/rc.d/init.d/fcron</filename>
213 init script from the <xref linkend="bootscripts"/>
214 package.</para>
215
216 <indexterm zone="fcron fcron-init">
217 <primary sortas="f-fcron">fcron</primary>
218 </indexterm>
219
220<screen role="root"><userinput>make install-fcron</userinput></screen>
221
222 </sect3>
223
224 </sect2>
225
226 <sect2 role="content">
227 <title>Contents</title>
228
229 <segmentedlist>
230 <segtitle>Installed Programs</segtitle>
231 <segtitle>Installed Libraries</segtitle>
232 <segtitle>Installed Directories</segtitle>
233
234 <seglistitem>
235 <seg>fcron, fcrondyn, fcronsighup, and fcrontab</seg>
236 <seg>None</seg>
237 <seg>/usr/share/doc/fcron-&fcron-version; and /var/spool/fcron</seg>
238 </seglistitem>
239 </segmentedlist>
240
241 <variablelist>
242 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
243 <?dbfo list-presentation="list"?>
244 <?dbhtml list-presentation="table"?>
245
246 <varlistentry id="fcron-prog">
247 <term><command>fcron</command></term>
248 <listitem>
249 <para>is the scheduling daemon.</para>
250 <indexterm zone="fcron fcron-prog">
251 <primary sortas="b-fcron">fcron</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="fcrondyn">
257 <term><command>fcrondyn</command></term>
258 <listitem>
259 <para>is a user tool intended to interact with a running
260 <command>fcron</command> daemon.</para>
261 <indexterm zone="fcron fcrondyn">
262 <primary sortas="b-fcrondyn">fcrondyn</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id="fcronsighup">
268 <term><command>fcronsighup</command></term>
269 <listitem>
270 <para>instructs <command>fcron</command> to reread the
271 <application>Fcron</application> tables.</para>
272 <indexterm zone="fcron fcronsighup">
273 <primary sortas="b-fcronsighup">fcronsighup</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="fcrontab">
279 <term><command>fcrontab</command></term>
280 <listitem>
281 <para>is a program used to install, edit, list and remove the
282 tables used by <command>fcron</command>.</para>
283 <indexterm zone="fcron fcrontab">
284 <primary sortas="b-fcrontab">fcrontab</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 </variablelist>
290
291 </sect2>
292
293</sect1>
Note: See TracBrowser for help on using the repository browser.