Changeset fe88f584 for content/web


Ignore:
Timestamp:
03/28/2004 07:14:54 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:
babc75b
Parents:
ae9c528
Message:

Completed lfs-bootscripts changes

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

Location:
content/web
Files:
4 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>
Note: See TracChangeset for help on using the changeset viewer.