mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-06 00:48:19 +08:00
0149ad0e62
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1707 af4574ff-66df-0310-9fd7-8a98e5e911e0
37 lines
1.4 KiB
XML
37 lines
1.4 KiB
XML
<sect2>
|
|
<title>Installation of <application>Fcron</application></title>
|
|
|
|
<para><application>Fcron</application> uses the cron facility of
|
|
<command>syslog</command>
|
|
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 <application>Fcron</application>. This command will append
|
|
the necessary line to the current <filename>/etc/syslog.conf</filename>:</para>
|
|
|
|
<screen><userinput><command>cat >> /etc/syslog.conf << "EOF"
|
|
# Begin fcron addition to /etc/syslog.conf
|
|
|
|
cron.* -/var/log/cron.log
|
|
|
|
# End fcron addition
|
|
EOF</command></userinput></screen>
|
|
|
|
<para>The configuration file has been modified, so reloading the
|
|
<command>sysklogd</command> daemon will activate the changes.</para>
|
|
|
|
<screen><userinput><command>/etc/rc.d/init.d/sysklogd reload</command></userinput></screen>
|
|
|
|
<para>For security reasons, we need to create an unprivileged user and
|
|
group for <application>fcron</application>:</para>
|
|
|
|
<screen><userinput><command>groupadd fcron &&
|
|
useradd -c fcron -g fcron fcron</command></userinput></screen>
|
|
|
|
<para>Install <application>Fcron</application> by running the following commands:</para>
|
|
|
|
<screen><userinput><command>./configure --without-sendmail --with-answer-all=no &&
|
|
make &&
|
|
make install</command></userinput></screen>
|
|
|
|
</sect2>
|