Ignore:
Timestamp:
03/22/2004 07:42:22 AM (18 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
10.0, 10.1, 11.0, 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, ken/refactor-virt, krejzi/svn, lazarus, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
15995a1
Parents:
cc265e51
Message:

First batch of lfs-bootscripts

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/fcron/fcron-config.xml

    rcc265e51 r40d91bde  
    2020situation.</para>
    2121
    22 <para>Create the boot script with the following:</para>
    23 
    24 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/fcron &lt;&lt; "EOF"
    25 #!/bin/sh
    26 # Begin $rc_base/init.d/fcron
    27 
    28 # Based on sysklogd script from LFS-3.1 and earlier.
    29 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    30 
    31 . /etc/sysconfig/rc
    32 . $rc_functions
    33 
    34 case "$1" in
    35         start)
    36                 echo "Starting fcron..."
    37                 loadproc fcron
    38                 ;;
    39 
    40         stop)
    41                 echo "Stopping fcron..."
    42                 killproc fcron
    43                 ;;
    44 
    45         restart)
    46                 $0 stop
    47                 sleep 1
    48                 $0 start
    49                 ;;
    50 
    51         status)
    52                 statusproc fcron
    53                 ;;
    54 
    55         *)
    56                 echo "Usage: $0 {start|stop|restart|status}"
    57                 exit 1
    58                 ;;
    59 esac
    60 
    61 # End $rc_base/init.d/fcron
    62 EOF
    63 chmod 755 /etc/rc.d/init.d/fcron</command></userinput></screen>
    64 
    65 <para>Create the symbolic links to this file in the relevant
    66 <filename class="directory">rc.d</filename> directory
    67 with the following commands:</para>
    68 
    69 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    70 ln -sf ../init.d/fcron ../rc0.d/K08fcron &amp;&amp;
    71 ln -sf ../init.d/fcron ../rc2.d/S40fcron &amp;&amp;
    72 ln -sf ../init.d/fcron ../rc3.d/S40fcron &amp;&amp;
    73 ln -sf ../init.d/fcron ../rc4.d/S40fcron &amp;&amp;
    74 ln -sf ../init.d/fcron ../rc5.d/S40fcron &amp;&amp;
    75 ln -sf ../init.d/fcron ../rc6.d/K08fcron</command></userinput></screen>
     22<para>Install <filename>/etc/rc.d/init.d/fcron</filename>
     23init script from the <xref linkend="intro-important-bootscripts"/> package.</para>
     24                                                                                                               
     25<screen><userinput><command>make install-fcron</command></userinput></screen>
    7626
    7727</sect3>
Note: See TracChangeset for help on using the changeset viewer.