2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
2003-09-19 05:21:15 +08:00
|
|
|
<title>Installation of <application>fcron</application></title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<para><application>Fcron</application> uses the cron facility of syslog
|
|
|
|
to log all messages. Since <acronym>LFS</acronym> does not set up this
|
|
|
|
facility in <filename>/etc/syslog.conf</filename>, it needs to be done
|
|
|
|
prior to installing fcron. This command will append the necessary line
|
|
|
|
to the current <filename>/etc/syslog.conf</filename>.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<screen><userinput><command>cat >> /etc/syslog.conf << "EOF"
|
2002-07-08 04:28:42 +08:00
|
|
|
# Begin fcron addition to /etc/syslog.conf
|
|
|
|
|
|
|
|
cron.* -/var/log/cron.log
|
|
|
|
|
|
|
|
# End fcron addition
|
2003-09-19 05:21:15 +08:00
|
|
|
EOF</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<para>The configuration file has been modified, so reloading the sysklogd
|
|
|
|
daemon will activate the changes.</para>
|
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<screen><userinput><command>/etc/rc.d/init.d/sysklogd reload</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<para>For security reasons, we need to create an unpriviledged user and
|
|
|
|
group for <application>fcron</application>:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<screen><userinput><command>groupadd fcron &&
|
|
|
|
useradd -c fcron -g fcron fcron</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-19 05:21:15 +08:00
|
|
|
<para>Install <application>fcron</application> by running the following commands:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-26 07:12:36 +08:00
|
|
|
<screen><userinput><command>./configure --without-sendmail --with-answer-all=no &&
|
2002-11-08 00:27:00 +08:00
|
|
|
make &&
|
2003-09-26 07:12:36 +08:00
|
|
|
make install</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect2>
|