source: general/sysutils/fcron/fcron-config.xml@ 292bc8bf

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 292bc8bf was 292bc8bf, checked in by Igor Živković <igor@…>, 21 years ago

updated instructions for fcron

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

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[f45b1953]1<sect2>
2<title>Configuring fcron</title>
3
[292bc8bf]4<sect3><title>Config files</title>
5
6<para><filename>/etc/fcron.conf</filename>,
7<filename>/etc/fcron.allow</filename>,
8<filename>/etc/fcron.deny</filename></para>
9
10</sect3>
11
12<sect3><title>Configuration Information</title>
13
14<para>There are no required changes in any of the config files.
15Configuration information can be found in the man page for
16<filename>fcron.conf</filename>.</para>
17
18<para>Fcron scripts are written using fcrontab. Refer to the man page
19for fcrontab for proper parameters for your situation.</para>
20
21<para>Create the boot script with the following:</para>
22
23<screen><userinput><command>cat &gt; /etc/rc.d/init.d/fcron &lt;&lt; "EOF"
[f45b1953]24#!/bin/sh
25# Begin $rc_base/init.d/fcron
26
27# Based on sysklogd script from LFS-3.1 and earlier.
28# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
29
30source /etc/sysconfig/rc
31source $rc_functions
32
33case "$1" in
34 start)
35 echo "Starting fcron..."
36 loadproc fcron
37 ;;
38
39 stop)
40 echo "Stopping fcron..."
41 killproc fcron
42 ;;
43
44 restart)
45 $0 stop
46 sleep 1
47 $0 start
48 ;;
49
50 status)
51 statusproc fcron
52 ;;
53
54 *)
55 echo "Usage: $0 {start|stop|restart|status}"
56 exit 1
57 ;;
58esac
59
60# End $rc_base/init.d/fcron
[292bc8bf]61EOF
62chmod 755 /etc/rc.d/init.d/fcron</command></userinput></screen>
[f45b1953]63
[292bc8bf]64<para>Create the symbolic links to this file in the relevant
65<filename class="directory">rc.d</filename> directory
66with the following commands:</para>
[f45b1953]67
[292bc8bf]68<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
69ln -sf ../init.d/fcron ../rc0.d/K08fcron &amp;&amp;
70ln -sf ../init.d/fcron ../rc2.d/S40fcron &amp;&amp;
71ln -sf ../init.d/fcron ../rc3.d/S40fcron &amp;&amp;
72ln -sf ../init.d/fcron ../rc4.d/S40fcron &amp;&amp;
73ln -sf ../init.d/fcron ../rc5.d/S40fcron &amp;&amp;
74ln -sf ../init.d/fcron ../rc6.d/K08fcron</command></userinput></screen>
[f45b1953]75
[292bc8bf]76</sect3>
[f45b1953]77
78</sect2>
Note: See TracBrowser for help on using the repository browser.