Changeset 02912d44 for general/sysutils


Ignore:
Timestamp:
08/01/2004 12:53:10 AM (20 years ago)
Author:
Randy McMurchy <randy@…>
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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
92baa4d
Parents:
512e6761
Message:

Changed Sysstat instructions to use the BLFS bootscripts

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/sysstat.xml

    r512e6761 r02912d44  
    9595</sect3>
    9696
    97 <sect3><title>Startup script information</title>
     97<sect3><title>System startup information</title>
    9898
    9999<para>At system startup, a LINUX RESTART message must be inserted in the daily
    100 data file to reinitialize the kernel counters. Create a
    101 <filename>sysstat</filename> bootscript to accomplish this using the following
    102 commands:</para>
    103 
    104 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/sysstat &lt;&lt; "EOF"</command>
    105 #!/bin/sh
    106 # Begin $rc_base/init.d/sysstat
    107 
    108 # Based on sysklogd script from LFS-3.1 and earlier.
    109 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    110 
    111 . /etc/sysconfig/rc
    112 . $rc_functions
    113 
    114 case "$1" in
    115         start)
    116                 echo "Calling the system activity data collector (sadc)..."
    117                 /usr/lib/sa/sadc -F -L -
    118                 evaluate_retval
    119                 ;;
    120 
    121         *)
    122                 echo "Usage: $0 start"
    123                 exit 1
    124                 ;;
    125 esac
    126 
    127 # End $rc_base/init.d/sysstat
    128 <command>EOF
    129 chmod 754 /etc/rc.d/init.d/sysstat</command></userinput></screen>
    130 
    131 <para>The <filename>sysstat</filename> bootscript only needs to run at
    132 system startup, therefore only one symlink is required. Create this symlink in
    133 <filename class="directory">/etc/rc.d/rcsysinit.d</filename> using the following
    134 command:</para>
    135 
    136 <screen><userinput><command>ln -sf ../init.d/sysstat /etc/rc.d/rcsysinit.d/S85sysstat</command></userinput></screen>
     100data file to reinitialize the kernel counters. This can be automated by
     101installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script
     102included in the <xref linkend="intro-important-bootscripts"/> package using
     103the following command:</para>
     104<screen><userinput><command>make install-sysstat</command></userinput></screen>
    137105</sect3>
    138106
Note: See TracChangeset for help on using the changeset viewer.