1 | <sect2>
|
---|
2 | <title>Configuring fcron</title>
|
---|
3 |
|
---|
4 | <sect3><title>make install script</title>
|
---|
5 |
|
---|
6 | <para>After the files are installed, the make install script enters into a
|
---|
7 | configuration routine. The first test will be for a group named fcron. If
|
---|
8 | it does not exist, you will be given the command line that the script proposes
|
---|
9 | to run and a prompt for a 'y' or 'n'. This is repeated to create a user named
|
---|
10 | fcron and to install a script in the init.d directory with the appropriate
|
---|
11 | symbolic links in runlevels 2, 3, 4, and 5. The final configuation step is to
|
---|
12 | stop any current fcron processes and start the new fcron. A yes here will stop
|
---|
13 | current fcron processes and will start the new fcron. The following
|
---|
14 | commands will overwrite the fcron script with one based upon the BLFS
|
---|
15 | template:</para>
|
---|
16 |
|
---|
17 | <para><screen><userinput>cat > /etc/rc.d/init.d/fcron << "EOF"</userinput>
|
---|
18 | #!/bin/sh
|
---|
19 | # Begin $rc_base/init.d/fcron
|
---|
20 |
|
---|
21 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
22 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
23 |
|
---|
24 | source /etc/sysconfig/rc
|
---|
25 | source $rc_functions
|
---|
26 |
|
---|
27 | case "$1" in
|
---|
28 | start)
|
---|
29 | echo "Starting fcron..."
|
---|
30 | loadproc fcron
|
---|
31 | ;;
|
---|
32 |
|
---|
33 | stop)
|
---|
34 | echo "Stopping fcron..."
|
---|
35 | killproc fcron
|
---|
36 | ;;
|
---|
37 |
|
---|
38 | restart)
|
---|
39 | $0 stop
|
---|
40 | sleep 1
|
---|
41 | $0 start
|
---|
42 | ;;
|
---|
43 |
|
---|
44 | status)
|
---|
45 | statusproc fcron
|
---|
46 | ;;
|
---|
47 |
|
---|
48 | *)
|
---|
49 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
50 | exit 1
|
---|
51 | ;;
|
---|
52 | esac
|
---|
53 |
|
---|
54 | # End $rc_base/init.d/fcron
|
---|
55 | <userinput>EOF
|
---|
56 | chmod 755 /etc/rc.d/init.d/fcron &&
|
---|
57 | mv /etc/rc.d/rc0.d/K60fcron /etc/rc.d/rc0.d/K08fcron &&
|
---|
58 | mv /etc/rc.d/rc6.d/K60fcron /etc/rc.d/rc6.d/K08fcron</userinput></screen></para>
|
---|
59 | </sect3>
|
---|
60 |
|
---|
61 | <sect3><title>Config files</title>
|
---|
62 |
|
---|
63 | <para><userinput>/etc/fcron.conf, /etc/fcron.allow,
|
---|
64 | /etc/fcron.deny</userinput></para>
|
---|
65 |
|
---|
66 | <para>There are no required changes in any of these files.
|
---|
67 | Configuration information can be found in the man page for
|
---|
68 | fcron.conf.</para>
|
---|
69 |
|
---|
70 | <para>fcron scripts are written using fcrontab. Refer to the man page
|
---|
71 | for fcrontab for proper parameters for your situation.</para></sect3>
|
---|
72 |
|
---|
73 | </sect2>
|
---|
74 |
|
---|