Changeset fe88f584


Ignore:
Timestamp:
03/28/2004 07:14:54 AM (17 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, krejzi/svn, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, v5_1, v5_1-pre1, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
babc75b
Parents:
ae9c528
Message:

Completed lfs-bootscripts changes

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

Files:
13 edited

Legend:

Unmodified
Added
Removed
  • content/web/apache/apache-config.xml

    rae9c528 rfe88f584  
    2222server.</para>
    2323
    24 <para>To automate the running of Apache, use the following command to
    25 create the init.d script:</para>
    26 
    27 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/apache &lt;&lt; "EOF"</command>
    28 #!/bin/sh
    29 
    30 . /etc/sysconfig/rc
    31 . $rc_functions
    32 
    33 case "$1" in
    34         start)
    35                 echo "Starting Apache daemon..."
    36                 /usr/sbin/apachectl -k start
    37                 evaluate_retval
    38                 ;;
    39 
    40         stop)
    41                 echo "Stopping Apache daemon..."
    42                 /usr/sbin/apachectl -k stop
    43                 evaluate_retval
    44                 ;;
    45 
    46         restart)
    47                 echo "Restarting Apache daemon..."
    48                 /usr/sbin/apachectl -k restart
    49                 evaluate_retval
    50                 ;;
    51 
    52         status)
    53                 statusproc /usr/sbin/httpd
    54                 ;;
    55                
    56         *)
    57                 echo "Usage: $0 {start|stop|restart|status}"
    58                 exit 1
    59                 ;;
    60 esac
    61 <command>EOF
    62 chmod 755 /etc/rc.d/init.d/apache</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 &amp;&amp;
    69 ln -sf ../init.d/apache ../rc0.d/K28apache &amp;&amp;
    70 ln -sf ../init.d/apache ../rc1.d/K28apache &amp;&amp;
    71 ln -sf ../init.d/apache ../rc2.d/K28apache &amp;&amp;
    72 ln -sf ../init.d/apache ../rc3.d/S32apache &amp;&amp;
    73 ln -sf ../init.d/apache ../rc4.d/S32apache &amp;&amp;
    74 ln -sf ../init.d/apache ../rc5.d/S32apache &amp;&amp;
    75 ln -sf ../init.d/apache ../rc6.d/K28apache</command></userinput></screen>
     24<para>Install <filename>/etc/rc.d/init.d/apache</filename>
     25init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     26                                                                                                               
     27<screen><userinput><command>make install-apache</command></userinput></screen>
    7628
    7729</sect3>
  • content/web/apache/apache-exp.xml

    rae9c528 rfe88f584  
    22<title>Command explanations</title>
    33
     4<para><parameter>--with-expat=/usr</parameter>: Uses system installed
     5expat. <emphasis>If you have installed expat and do not use this switch, the
     6apache installation may overwrite some files from the expat installation.</emphasis></para>
    47<para><parameter>--enable-mods-shared=all</parameter>: We want modules
    58to be compiled and used as Dynamic Shared Objects
  • content/web/apache/apache-intro.xml

    rae9c528 rfe88f584  
    2525<sect4><title>Optional</title>
    2626<para><xref linkend="db"/> or <xref linkend="gdbm"/>, <xref linkend="openssl"/>, <xref
    27 linkend="openldap"/> and <xref linkend="lynx"/>
     27linkend="openldap"/> <xref linkend="expat"/> and <xref linkend="lynx"/>
    2828</para></sect4>
    2929</sect3>
  • content/web/proftpd/proftpd-config.xml

    rae9c528 rfe88f584  
    11<sect2>
    22<title>Configuring <application>ProFTPD</application></title>
     3
     4<sect3><title>proftpd init.d script</title>
     5<para>Install <filename>/etc/rc.d/init.d/proftpd</filename>
     6init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     7                                                                                                               
     8<screen><userinput><command>make install-proftpd</command></userinput></screen>
     9
     10</sect3>
    311
    412<sect3><title>Config files</title>
     
    6472
    6573
    66 <sect3><title>proftpd init.d script</title>
    67 
    68 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/proftpd &lt;&lt; "EOF"</command>
    69 #!/bin/sh
    70 # Begin $rc_base/init.d/proftpd
    71 
    72 # Based on sysklogd script from LFS-3.1 and earlier.
    73 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    74 
    75 . /etc/sysconfig/rc
    76 . $rc_functions
    77 
    78 case "$1" in
    79         start)
    80                 echo "Starting FTP Server..."
    81                 loadproc /usr/sbin/proftpd
    82                 ;;
    83 
    84         stop)
    85                 echo "Stopping FTP Server..."
    86                 killproc /usr/sbin/proftpd
    87                 ;;
    88 
    89         reload)
    90                 echo "Reloading FTP Server..."
    91                 reloadproc /usr/sbin/proftpd
    92                 ;;
    93 
    94         restart)
    95                 $0 stop
    96                 sleep 1
    97                 $0 start
    98                 ;;
    99 
    100         status)
    101                 statusproc /usr/sbin/proftpd
    102                 ;;
    103 
    104         *)
    105                 echo "Usage: $0 {start|stop|reload|restart|status}"
    106                 exit 1
    107                 ;;
    108 esac
    109 
    110 # End $rc_base/init.d/proftpd
    111 <command>EOF
    112 chmod 755 /etc/rc.d/init.d/proftpd</command></userinput></screen>
    113 
    114 <para>Create the symbolic links to this file in the relevant <filename
    115 class="directory">rc.d</filename> directories with the following
    116 commands:</para>
    117 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    118 ln -sf ../init.d/proftpd ../rc0.d/K28proftpd &amp;&amp;
    119 ln -sf ../init.d/proftpd ../rc1.d/K28proftpd &amp;&amp;
    120 ln -sf ../init.d/proftpd ../rc2.d/K28proftpd &amp;&amp;
    121 ln -sf ../init.d/proftpd ../rc3.d/S32proftpd &amp;&amp;
    122 ln -sf ../init.d/proftpd ../rc4.d/S32proftpd &amp;&amp;
    123 ln -sf ../init.d/proftpd ../rc5.d/S32proftpd &amp;&amp;
    124 ln -sf ../init.d/proftpd ../rc6.d/K28proftpd</command></userinput></screen>
    125 
    126 </sect3>
    127 
    12874</sect2>
  • gnome/other/gdm/gdm-config.xml

    rae9c528 rfe88f584  
    2929<para><command>gdm</command> can be tested by executing it from a root console.</para>
    3030
    31 <para>To automate the running of <command>gdm</command>, use the following command to
    32 create the init.d script if your
    33 GNOME_PREFIX=/opt/gnome-&gnome-version;.  The fully qualified paths can
    34 be removed for GNOME_PREFIX=/usr:</para>
    35 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/gdm &lt;&lt; "EOF"</command>
    36 #!/bin/sh
    37 # Begin $rc_base/init.d/gdm
     31<para>To start a graphical login at boot, install <filename>/etc/rc.d/init.d/gdm</filename>
     32init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    3833
    39 # Based on sysklogd script from LFS-3.1 and earlier.
    40 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    41 
    42 . /etc/sysconfig/rc
    43 . $rc_functions
    44 
    45 case "$1" in
    46         start)
    47                 echo "Starting GDM..."
    48                 loadproc /opt/gnome-&gnome-version;/bin/gdm
    49                 ;;
    50 
    51         stop)
    52                 echo "Stopping GDM..."
    53                 if [ -f /var/run/gdm.pid ]; then
    54                 loadproc /opt/gnome-&gnome-version;/sbin/gdm-stop
    55                 fi
    56                 ;;
    57 
    58         reload)
    59                 echo "Reloading GDM..."
    60                 reloadproc /opt/gnome-&gnome-version;/sbin/gdm-safe-restart
    61                 ;;
    62 
    63         restart)
    64                 echo "Restarting GDM..."
    65                 loadproc /opt/gnome-&gnome-version;/sbin/gdm-restart
    66                 ;;
    67 
    68         *)
    69                 echo "Usage: $0 {start|stop|reload|restart}"
    70                 exit 1
    71                 ;;
    72 esac
    73 
    74 # End $rc_base/init.d/gdm
    75 <command>EOF
    76 chmod 755 /etc/rc.d/init.d/gdm</command></userinput></screen>
    77 
    78 <para>Create the symbolic links to this file in the relevant
    79 <filename>rc.d</filename>
    80 directory with the following commands:</para>
    81 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    82 ln -sf ../init.d/gdm ../rc0.d/K05gdm &amp;&amp;
    83 ln -sf ../init.d/gdm ../rc1.d/K05gdm &amp;&amp;
    84 ln -sf ../init.d/gdm ../rc2.d/K05gdm &amp;&amp;
    85 ln -sf ../init.d/gdm ../rc3.d/K05gdm &amp;&amp;
    86 ln -sf ../init.d/gdm ../rc4.d/K05gdm &amp;&amp;
    87 ln -sf ../init.d/gdm ../rc5.d/S95gdm &amp;&amp;
    88 ln -sf ../init.d/gdm ../rc6.d/K05gdm</command></userinput></screen>
     34<screen><userinput><command>make install-gdm</command></userinput></screen>
    8935
    9036<para>To autostart with a graphical login, edit
  • index.xml

    rae9c528 rfe88f584  
    33                        "/usr/share/docbook/docbookx.dtd" [
    44
    5 <!ENTITY version "CVS-20040327">
    6 <!ENTITY releasedate "March 27th, 2004">
     5<!ENTITY version "CVS-20040328">
     6<!ENTITY releasedate "March 28th, 2004">
    77<!ENTITY blfs-version "cvs">
    88
  • introduction/welcome/changelog.xml

    rae9c528 rfe88f584  
    1313
    1414<listitem><para>March 27th, 2004 [tushar]: Updated mysql, postgresql, bind, dhcp
     15apache, proftpd, gdm, alsa, cups, lprng, xfree86,
    1516openssh, rsync, samba and xinetd to use lfs-bootscripts for init scripts.</para></listitem>
    1617
  • multimedia/libdriv/alsa/utils/alsa-utils-config.xml

    rae9c528 rfe88f584  
    1919installs a script as <filename>/etc/rc.d/init.d/alsasound</filename>.  While it
    2020is possible to use this script, it contains a lot of extraneous detail which
    21 isn't needed on an <acronym>LFS</acronym> system and so we create our own
    22 script <filename>/etc/rc.d/init.d/alsa</filename>.</para>
     21isn't needed on an <acronym>LFS</acronym> system and so we install the init
     22script <filename>/etc/rc.d/init.d/alsa</filename> included in the
     23<xref linkend="intro-important-bootscripts"/> package.</para>
    2324
    24 <para>To create the <application><acronym>ALSA</acronym></application> script, do the following:</para>
    25 
    26 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/alsa &lt;&lt; "EOF"</command>
    27 #!/bin/sh
    28 # Begin $rc_base/init.d/alsa
    29 
    30 # Based on sysklogd script from LFS-3.1 and earlier.
    31 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    32 # ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org
    33 # Stores mixer settings in the default location: /etc/asound.state
    34 
    35 . /etc/sysconfig/rc
    36 . $rc_functions
    37 
    38 case "$1" in
    39     start)
    40         echo "Starting ALSA...    Restoring volumes..."
    41         loadproc /usr/sbin/alsactl restore
    42         #echo "                    Loading MIDI font..."
    43         #loadproc sfxload /path/to/soundfont
    44         ;;
    45 
    46     stop)
    47         echo "Stopping ALSA...    Saving volumes......"
    48         loadproc /usr/sbin/alsactl store
    49         #echo "            Removing MIDI font.........."
    50         #loadproc sfxload -i
    51         ;;
    52 
    53     restart)
    54         $0 stop
    55         /bin/sleep 1
    56         $0 start
    57         ;;
    58 
    59     *)
    60         echo "Usage: $0 {start|stop|restart}"
    61         exit 1
    62         ;;
    63 
    64 esac
    65 
    66 # End $rc_base/init.d/alsa
    67 <command>EOF
    68 chmod 755 /etc/rc.d/init.d/alsa</command></userinput></screen>
    69 
    70 <para>You can then create the appropriate symlinks:</para>
    71 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    72 ln -sf ../init.d/alsa ../rc0.d/K35alsa &amp;&amp;
    73 ln -sf ../init.d/alsa ../rc1.d/K35alsa &amp;&amp;
    74 ln -sf ../init.d/alsa ../rc2.d/S40alsa &amp;&amp;
    75 ln -sf ../init.d/alsa ../rc3.d/S40alsa &amp;&amp;
    76 ln -sf ../init.d/alsa ../rc4.d/S40alsa &amp;&amp;
    77 ln -sf ../init.d/alsa ../rc5.d/S40alsa &amp;&amp;
    78 ln -sf ../init.d/alsa ../rc6.d/K35alsa</command></userinput></screen>
     25<screen><userinput><command>make install-alsa</command></userinput></screen>
    7926
    8027<para>Note that all channels of your soundcard are muted by default. You can
  • multimedia/libdriv/libdriv.xml

    rae9c528 rfe88f584  
    2525&id3lib;
    2626&flac;
     27&libdvdcss;
    2728&libdvdread;
    28 &libdvdcss;
    2929&libdv;
    3030&liba52;
  • pst/printing/cups/cups-config.xml

    rae9c528 rfe88f584  
    2121created the startup file <filename>/etc/rc.d/init.d/cups</filename>. The file
    2222works, but you may want to change it to a more conventional <acronym>LFS
    23 </acronym> startup file:</para>
     23</acronym> startup file by installing the script included in the
     24<xref linkend="intro-important-bootscripts"/> package:</para>
    2425
    25 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/cups &lt;&lt; "EOF"</command>
    26 #!/bin/sh
    27 # Begin $rc_base/init.d/cups
    28 
    29 # Start or stop the CUPS server based upon the first argument to the script.
    30 
    31 . /etc/sysconfig/rc
    32 . $rc_functions
    33 
    34 case $1 in
    35     start)
    36            echo "Starting CUPS Printserver..."
    37            loadproc /usr/sbin/cupsd
    38            ;;
    39     stop)
    40            echo "Stopping CUPS Printserver..."
    41            killproc cupsd
    42            ;;
    43 
    44     reload)
    45            echo "Reloading CUPS Printserver..."
    46            reloadproc /usr/sbin/cupsd
    47            ;;
    48 
    49     restart)
    50            $0 stop
    51            sleep 1
    52            $0 start
    53            ;;
    54 
    55     status)
    56            statusproc cupsd
    57            ;;
    58 
    59     *)
    60            echo "Usage: $0 {start|stop|reload|restart|status}"
    61            exit 1
    62            ;;
    63 esac
    64 
    65 # End $rc_base/init.d/cups startup script.
    66 <command>EOF</command></userinput></screen>
    67 
    68 <para>Create the symbolic links to this file in the relevant
    69 <filename class="directory">rc.d</filename> directory
    70 with the following commands:</para>
    71 
    72 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    73 ln -sf ../init.d/cups ../rc0.d/K00cups &amp;&amp;
    74 ln -sf ../init.d/cups ../rc1.d/K00cups &amp;&amp;
    75 ln -sf ../init.d/cups ../rc2.d/S99cups &amp;&amp;
    76 ln -sf ../init.d/cups ../rc3.d/S99cups &amp;&amp;
    77 ln -sf ../init.d/cups ../rc4.d/S99cups &amp;&amp;
    78 ln -sf ../init.d/cups ../rc5.d/S99cups &amp;&amp;
    79 ln -sf ../init.d/cups ../rc6.d/K00cups</command></userinput></screen>
     26<screen><userinput><command>make install-cups</command></userinput></screen>
    8027
    8128</sect2>
  • pst/printing/lprng/lprng-config.xml

    rae9c528 rfe88f584  
    1616
    1717<para>The init script installed by <application>LPRng</application> is not
    18 consistent with <acronym>BLFS</acronym> scripts; therefore, we will create a
    19 new one with the following commands:</para>
     18consistent with other <acronym>BLFS</acronym> scripts; therefore, we will install
     19<filename>/etc/rc.d/init.d/lprng</filename>
     20init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    2021
    21 <screen><userinput><command>mv /etc/rc.d/init.d/lpd /etc/rc.d/init.d/lpd.orig &amp;&amp;
    22 cat &gt; /etc/rc.d/init.d/lpd &lt;&lt; "EOF"</command>
    23 #!/bin/sh
    24 # Begin $rc_base/init.d/lpd
    25 
    26 # Based on sysklogd script from LFS-3.1 and earlier.
    27 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    28 
    29 . /etc/sysconfig/rc
    30 . $rc_functions
    31 
    32 case "$1" in
    33         start)
    34                 echo "Starting lpd..."
    35                 loadproc /usr/sbin/lpd
    36                 ;;
    37 
    38         stop)
    39                 echo "Stopping lpd..."
    40                 killproc /usr/sbin/lpd
    41                 ;;
    42 
    43         reload)
    44                 echo "Reloading lpd..."
    45                 reloadproc /usr/sbin/lpd
    46                 ;;
    47 
    48         restart)
    49                 $0 stop
    50                 sleep 1
    51                 $0 start
    52                 ;;
    53 
    54         status)
    55                 statusproc /usr/sbin/lpd
    56                 ;;
    57 
    58         *)
    59                 echo "Usage: $0 {start|stop|reload|restart|status}"
    60                 exit 1
    61                 ;;
    62 esac
    63 
    64 # End $rc_base/init.d/lpd
    65 <command>EOF
    66 chmod 755 /etc/rc.d/init.d/lpd</command></userinput></screen>
    67 
    68 <para>Create the symbolic links to the lprng init script in the relevant
    69 <filename>rc.d</filename> directories with the following
    70 commands:</para>
    71 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    72 ln -sf ../init.d/lpd ../rc0.d/K00lprng &amp;&amp;
    73 ln -sf ../init.d/lpd ../rc1.d/K00lprng &amp;&amp;
    74 ln -sf ../init.d/lpd ../rc2.d/S99lprng &amp;&amp;
    75 ln -sf ../init.d/lpd ../rc3.d/S99lprng &amp;&amp;
    76 ln -sf ../init.d/lpd ../rc4.d/S99lprng &amp;&amp;
    77 ln -sf ../init.d/lpd ../rc5.d/S99lprng &amp;&amp;
    78 ln -sf ../init.d/lpd ../rc6.d/K00lprng</command></userinput></screen>
     22<screen><userinput><command>make install-lprng</command></userinput></screen>
    7923
    8024</sect3>
  • x/installing/xfree86/xfree86-config.xml

    rae9c528 rfe88f584  
    9292<note>
    9393
    94 <para>When starting up, <application>XFree86</application> creates the directory
     94<para>When needed, <application>XFree86</application> creates the directory
    9595<filename>/tmp/.ICE-unix</filename> if it does not exist. If this directory is
    9696not owned by root, <application>XFree86</application> delays startup by a few seconds
    9797and also appends a warning to the logfile. This also affects startup of other
    98 applications. To improve performance, perform the following steps as root before
    99 starting <application>XFree86</application> for the first time. Additionally, if you
    100 use tmpfs or clean out all the files in <filename>/tmp</filename> when you boot,
    101 we recommend adding the same instructions to the end of your
     98applications. To improve performance, it is advisable to manually create the directory
     99before XFree86 uses it. Add the file creation to <filename>/etc/sysconfig/createfiles</filename>
     100that is sourced by the
    102101<filename>/etc/rc.d/init.d/cleanfs</filename> startup script.</para>
    103102
    104 <screen><userinput>rm -rf /tmp/.ICE-unix &amp;&amp;
    105 mkdir /tmp/.ICE-unix &amp;&amp;
    106 chmod 1777 /tmp/.ICE-unix</userinput></screen>
     103<screen><userinput><command>cat &gt;&gt; /etc/sysconfig/createfiles &lt;&lt; "EOF"</command>
     104dir root root 1777 /tmp/.ICE-unix
     105<command>EOF</command></userinput></screen>
    107106
    108107</note>
  • xsoft/other/thunderbird/thunderbird-inst.xml

    rae9c528 rfe88f584  
    22<title>Installation of <application>Mozilla Thunderbird</application></title>
    33
    4 <warning><para>The current source tarball uses CRLF line-ending (DOS Format). This causes
     4<warning>
     5<para>The current source tarball uses CRLF line-ending (DOS Format). This causes
    56problems during the compilation. Once you extract the tarball, convert the files
    6 to UNIX style line endings using <xref linkend="hd2u"/>.</para></warning>
     7to UNIX style line endings using <xref linkend="hd2u"/>.</para>
     8<screen><userinput><command>find -type f -print0 | xargs -0 dos2unix --d2u</command></userinput></screen>
     9</warning>
    710
    811<para>The configuration of <application>Mozilla Thunderbird</application> is
Note: See TracChangeset for help on using the changeset viewer.