[f45b1953] | 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 but will fail to start new fcron. The following
|
---|
| 14 | commands will correct this:</para>
|
---|
| 15 |
|
---|
| 16 | <para><screen><userinput>cat > /etc/rc.d/init.d/fcron << "EOF"</userinput>
|
---|
| 17 | #!/bin/sh
|
---|
| 18 | # Begin $rc_base/init.d/fcron
|
---|
| 19 |
|
---|
| 20 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
| 21 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
| 22 |
|
---|
| 23 | source /etc/sysconfig/rc
|
---|
| 24 | source $rc_functions
|
---|
| 25 |
|
---|
| 26 | case "$1" in
|
---|
| 27 | start)
|
---|
| 28 | echo "Starting fcron..."
|
---|
| 29 | loadproc fcron
|
---|
| 30 | ;;
|
---|
| 31 |
|
---|
| 32 | stop)
|
---|
| 33 | echo "Stopping fcron..."
|
---|
| 34 | killproc fcron
|
---|
| 35 | ;;
|
---|
| 36 |
|
---|
| 37 | restart)
|
---|
| 38 | $0 stop
|
---|
| 39 | sleep 1
|
---|
| 40 | $0 start
|
---|
| 41 | ;;
|
---|
| 42 |
|
---|
| 43 | status)
|
---|
| 44 | statusproc fcron
|
---|
| 45 | ;;
|
---|
| 46 |
|
---|
| 47 | *)
|
---|
| 48 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
| 49 | exit 1
|
---|
| 50 | ;;
|
---|
| 51 | esac
|
---|
| 52 |
|
---|
| 53 | # End $rc_base/init.d/fcron
|
---|
| 54 | <userinput>EOF
|
---|
| 55 | chmod 755 /etc/rc.d/init.d/fcron &&
|
---|
| 56 | /etc/rc.d/init.d/fcron start &&
|
---|
| 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 |
|
---|