1 | <sect2>
|
---|
2 | <title>Configuring fcron</title>
|
---|
3 |
|
---|
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.
|
---|
15 | Configuration 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
|
---|
19 | for 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 > /etc/rc.d/init.d/fcron << "EOF"
|
---|
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 |
|
---|
30 | source /etc/sysconfig/rc
|
---|
31 | source $rc_functions
|
---|
32 |
|
---|
33 | case "$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 | ;;
|
---|
58 | esac
|
---|
59 |
|
---|
60 | # End $rc_base/init.d/fcron
|
---|
61 | EOF
|
---|
62 | chmod 755 /etc/rc.d/init.d/fcron</command></userinput></screen>
|
---|
63 |
|
---|
64 | <para>Create the symbolic links to this file in the relevant
|
---|
65 | <filename class="directory">rc.d</filename> directory
|
---|
66 | with the following commands:</para>
|
---|
67 |
|
---|
68 | <screen><userinput><command>cd /etc/rc.d/init.d &&
|
---|
69 | ln -sf ../init.d/fcron ../rc0.d/K08fcron &&
|
---|
70 | ln -sf ../init.d/fcron ../rc2.d/S40fcron &&
|
---|
71 | ln -sf ../init.d/fcron ../rc3.d/S40fcron &&
|
---|
72 | ln -sf ../init.d/fcron ../rc4.d/S40fcron &&
|
---|
73 | ln -sf ../init.d/fcron ../rc5.d/S40fcron &&
|
---|
74 | ln -sf ../init.d/fcron ../rc6.d/K08fcron</command></userinput></screen>
|
---|
75 |
|
---|
76 | </sect3>
|
---|
77 |
|
---|
78 | </sect2>
|
---|