glfs/general/sysutils/fcron/fcron-inst.xml

36 lines
1.3 KiB
XML
Raw Normal View History

<sect2>
<title>Installation of <application>fcron</application></title>
<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>
<screen><userinput><command>cat &gt;&gt; /etc/syslog.conf &lt;&lt; "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 sysklogd
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 unpriviledged user and
group for <application>fcron</application>:</para>
<screen><userinput><command>groupadd fcron &amp;&amp;
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 &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
</sect2>