Ticket #144: xinetd.patch

File xinetd.patch, 8.1 KB (added by billy@…, 22 years ago)

Adds xinetd

  • xinetd/xinetd-config-exp.xml

    diff --exclude=CVS --exclude='bind*' -Naur ./xinetd/xinetd-config-exp.xml /home/billy/NEWBLFS/BOOK/server/other/xinetd/xinetd-config-exp.xml
    old new  
     1<sect2>
     2<title>Configuration command explanations</title>
     3<para><userinput>
     4cp /etc/xinetd.conf /etc/xinetd.conf.bak : </userinput>
     5Save the current xinetd.conf file, if it exists.</para>
     6
     7<para><userinput>
     8sed -e 's/etc/sbin/g' xinetd/sample.config > /etc/xinetd.conf
     9:</userinput>
     10
     11insure the path to all daemons is /usr/sbin, rather than the
     12default path of /usr/etc.</para>
     13
     14<para><userinput>
     15ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S300xinetd, etc. :
     16</userinput>
     17Create the xinetd runlevel symlinks to the xinetd boot script, used to
     18start and stop xinetd automatically on machine startup and
     19shutdown.</para>
     20
     21<para>The format of the <filename>/etc/xinetd.conf</filename> is
     22documented in the xinetd.conf man page.  Further information can be
     23found at <ulink url="http://www.xinetd.org"/>.</para>
     24
     25</sect2>
     26
  • xinetd/xinetd-config.xml

    diff --exclude=CVS --exclude='bind*' -Naur ./xinetd/xinetd-config.xml /home/billy/NEWBLFS/BOOK/server/other/xinetd/xinetd-config.xml
    old new  
     1<sect2>
     2<title>Configuring xinetd</title>
     3<para>Create the xinetd.conf file with the following commands: </para>
     4
     5<para><screen><userinput>
     6cp /etc/xinetd.conf /etc/xinetd.conf.bak
     7sed -e 's/etc/sbin/g' xinetd/sample.conf &gt; /etc/xinetd.conf
     8</userinput></screen></para>
     9
     10<sect3><title>Config files</title>
     11<para><userinput>/etc/xinetd.conf</userinput></para>
     12
     13<para>Create the xinetd boot script:</para>
     14<para><screen><userinput>
     15cat &gt; /etc/rc.d/init.d/xinetd &lt;&lt; "EOF"
     16#!/bin/bash
     17# Begin $rc_base/init.d/xinetd
     18# Based on sysklogd script from LFS-3.1 and earlier.
     19# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
     20source /etc/sysconfig/rc
     21source $rc_functions
     22case "$1" in
     23        start)
     24                echo "Starting xinetd..."
     25                loadproc /usr/sbin/xinetd
     26                ;;
     27        stop)
     28                echo "Stopping xinetd..."
     29                killproc /usr/sbin/xinetd
     30                ;;
     31        reload)
     32                echo "Reloading xinetd..."
     33                killall -HUP xinetd
     34                ;;
     35        restart)
     36                $0 stop
     37                sleep 1
     38                $0 start
     39                ;;
     40        status)
     41                statusproc /usr/sbin/xinetd
     42                ;;
     43        *)
     44                echo "Usage: $0 {start|stop|reload|restart|status}"
     45                exit 1
     46                ;;
     47esac
     48# End $rc_base/init.d/xinetd
     49EOF
     50
     51</userinput></screen></para>
     52<para>Add the run level symlinks:</para>
     53<para><screen><userinput>
     54chmod 754 /etc/rc.d/init.d/xinetd &&
     55ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc0.d/K300xinetd &&
     56ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc1.d/K300xinetd &&
     57ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc2.d/K300xinetd &&
     58ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S300xinetd &&
     59ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc4.d/S300xinetd &&
     60ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc5.d/S300xinetd &&
     61ln -s  /etc/rc.d/init.d/xinetd /etc/rc.d/rc6.d/K300xinetd
     62</userinput></screen></para>
     63
     64<para>Now, we'll use our new boot script to start xinetd: </para>
     65<para><screen><userinput>
     66/etc/rc.d/init.d/xinetd start
     67</userinput></screen></para>
     68
     69<para>Checking the <filename>/var/log/daemon.log</filename> file
     70should prove quite entertaining.  This file may contain entries
     71similar to the following: </para>
     72
     73<para><screen><userinput>
     74Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
     75executable [line=29]
     76Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server -
     77DISABLING SERVICE [line=29]
     78Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not
     79executable [line=42]
     80</userinput></screen></para>
     81
     82<para>These errors are due to the fact that we don't have most of the
     83servers that xinetd is trying to control installed yet.</para></sect3>
     84</sect2>
     85
  • xinetd/xinetd-desc.xml

    diff --exclude=CVS --exclude='bind*' -Naur ./xinetd/xinetd-desc.xml /home/billy/NEWBLFS/BOOK/server/other/xinetd/xinetd-desc.xml
    old new  
     1<sect2>
     2<title>Contents</title>
     3
     4<para>The xinetd package contains
     5<userinput>xinetd</userinput>,
     6<userinput>itox</userinput> and
     7<userinput>xconv.pl.</userinput></para></sect2>
     8
     9<sect2><title>Description</title>
     10
     11<sect3><title>xinetd</title>
     12<para>xinetd is the internet services daemon.</para></sect3>
     13<sect3><title>itox</title>
     14<para>itox is a utility used for converting inetd.conf files to
     15xinetd.conf format.</para></sect3>
     16<sect3><title>xconv.pl</title>
     17<para>xconv.pl is a perl script used for converting inetd.conf files
     18to xinetd.conf format, similar to itox.</para></sect3>
     19</sect2>
     20
  • xinetd/xinetd-exp.xml

    diff --exclude=CVS --exclude='bind*' -Naur ./xinetd/xinetd-exp.xml /home/billy/NEWBLFS/BOOK/server/other/xinetd/xinetd-exp.xml
    old new  
     1<sect2>
     2<title>Installation command explanations</title>
     3
     4<para><userinput>    ./configure --prefix=/usr : </userinput></para>
     5
     6<para>Change the default installation directory of /usr/local.</para>
     7</sect2>
  • xinetd/xinetd-inst.xml

    diff --exclude=CVS --exclude='bind*' -Naur ./xinetd/xinetd-inst.xml /home/billy/NEWBLFS/BOOK/server/other/xinetd/xinetd-inst.xml
    old new  
     1<sect2>
     2<title>Installation of xinetd</title>
     3
     4<para>Install xinetd by running the following commands:</para>
     5<para><screen><userinput>
     6./configure    --prefix=/usr &amp;&amp;
     7make &amp;&amp;
     8make install
     9</userinput></screen></para>
     10</sect2>
     11
  • xinetd/xinetd-intro.xml

    diff --exclude=CVS --exclude='bind*' -Naur ./xinetd/xinetd-intro.xml /home/billy/NEWBLFS/BOOK/server/other/xinetd/xinetd-intro.xml
    old new  
     1<sect2>
     2<title>Introduction to xinetd</title>
     3
     4<screen>Download location (HTTP):       <ulink url="&xinetd-download-http;"/>
     5Version used:                   &xinetd-version;
     6Package size:                   &xinetd-size;
     7Estimated Disk space required:  &xinetd-buildsize;</screen>
     8
     9<para>xinetd is the eXtended InterNET services daemon, a secure
     10replacement for inetd.</para></sect2>
     11
  • xinetd/xinetd.ent

    diff --exclude=CVS --exclude='bind*' -Naur ./xinetd/xinetd.ent /home/billy/NEWBLFS/BOOK/server/other/xinetd/xinetd.ent
    old new  
    11<!ENTITY xinetd SYSTEM "../xinetd.xml">
     2<!ENTITY xinetd-intro SYSTEM "xinetd-intro.xml">
     3<!ENTITY xinetd-inst SYSTEM "xinetd-inst.xml">
     4<!ENTITY xinetd-exp SYSTEM "xinetd-exp.xml">
     5<!ENTITY xinetd-config-exp SYSTEM "xinetd-config-exp.xml">
     6<!ENTITY xinetd-desc SYSTEM "xinetd-desc.xml">
     7<!ENTITY xinetd-config SYSTEM "xinetd-config.xml">
     8<!ENTITY xinetd-buildsize "1.2 MB">
     9<!ENTITY xinetd-version "2.3.7">
     10<!ENTITY xinetd-download-http
     11"http://www.xinetd.org/xinetd-2.3.7.tar.gz">
     12<!ENTITY xinetd-download-ftp "">
     13<!ENTITY xinetd-size "300 KB">
  • xinetd.xml

    diff --exclude=CVS --exclude='bind*' -Naur ./xinetd.xml /home/billy/NEWBLFS/BOOK/server/other/xinetd.xml
    old new  
    1 <sect1 id="xinetd" xreflabel="xinetd">
     1<sect1 id="xinetd" xreflabel="xinetd-&xinetd-version;">
    22<?dbhtml filename="xinetd.html" dir="server"?>
    3 <title>xinetd</title>
     3<title>xinetd-&xinetd-version;</title>
    44
    5 <para>TO BE DONE</para>
     5&xinetd-intro;
     6&xinetd-inst;
     7&xinetd-exp;
     8&xinetd-config;
     9&xinetd-config-exp;
     10&xinetd-desc;
    611
    712</sect1>
    813