Ignore:
Timestamp:
03/27/2004 07:16:16 AM (20 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
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_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
12929fb
Parents:
a58b896
Message:

More bootscript changes

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • basicnet/netprogs/ntp/ntp-config.xml

    ra58b896 r98d18589  
    4242and update the time each time <command>ntpd</command> is scheduled.</para>
    4343
    44 <para>If you choose Option one, then create the bootscript
    45 <filename>/etc/rc.d/init.d/ntp</filename> and put the start and
    46 stop symlinks:</para>
    47 
    48 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/ntp &lt;&lt; "EOF"</command>
    49 #!/bin/sh
    50 # Begin $rc_base/init.d/ntp
    51 . /etc/sysconfig/rc
    52 . $rc_functions
    53 case "$1" in
    54         start)
    55                 echo "Starting ntpd..."
    56                 loadproc ntpd
    57                 ;;
    58         stop)
    59                 echo "Stopping ntpd..."
    60                 killproc ntpd
    61                 ;;
    62         restart)
    63                 $0 stop
    64                 sleep 1
    65                 $0 start
    66                 ;;
    67         status)
    68                 statusproc ntpd
    69                 ;;
    70         *)
    71                 echo "Usage: $0 {start|stop|restart|status}"
    72                 exit 1
    73                 ;;
    74 esac
    75 # End $rc_base/init.d/ntp
    76 <command>EOF
    77 chmod 755 /etc/rc.d/init.d/ntp &amp;&amp;
    78 cd /etc/rc.d/init.d &amp;&amp;
    79 ln -sf ../init.d/ntp ../rc0.d/K46ntp &amp;&amp;
    80 ln -sf ../init.d/ntp ../rc1.d/K46ntp &amp;&amp;
    81 ln -sf ../init.d/ntp ../rc2.d/K46ntp &amp;&amp;
    82 ln -sf ../init.d/ntp ../rc3.d/S26ntp &amp;&amp;
    83 ln -sf ../init.d/ntp ../rc4.d/S26ntp &amp;&amp;
    84 ln -sf ../init.d/ntp ../rc5.d/S26ntp &amp;&amp;
    85 ln -sf ../init.d/ntp ../rc6.d/K46ntp</command></userinput></screen>
     44<para>If you choose Option one, then install
     45<filename>/etc/rc.d/init.d/ntp</filename>
     46init script included in the
     47<xref linkend="intro-important-bootscripts"/> package.</para>
     48                                                                                                               
     49<screen><userinput><command>make install-ntp</command></userinput></screen>
    8650
    8751<para>If you prefer to start ntpd periodically, add the following command to
Note: See TracChangeset for help on using the changeset viewer.