Ticket #144: xinetd.patch
File xinetd.patch, 8.1 KB (added by , 22 years ago) |
---|
-
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> 4 cp /etc/xinetd.conf /etc/xinetd.conf.bak : </userinput> 5 Save the current xinetd.conf file, if it exists.</para> 6 7 <para><userinput> 8 sed -e 's/etc/sbin/g' xinetd/sample.config > /etc/xinetd.conf 9 :</userinput> 10 11 insure the path to all daemons is /usr/sbin, rather than the 12 default path of /usr/etc.</para> 13 14 <para><userinput> 15 ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S300xinetd, etc. : 16 </userinput> 17 Create the xinetd runlevel symlinks to the xinetd boot script, used to 18 start and stop xinetd automatically on machine startup and 19 shutdown.</para> 20 21 <para>The format of the <filename>/etc/xinetd.conf</filename> is 22 documented in the xinetd.conf man page. Further information can be 23 found 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> 6 cp /etc/xinetd.conf /etc/xinetd.conf.bak 7 sed -e 's/etc/sbin/g' xinetd/sample.conf > /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> 15 cat > /etc/rc.d/init.d/xinetd << "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 20 source /etc/sysconfig/rc 21 source $rc_functions 22 case "$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 ;; 47 esac 48 # End $rc_base/init.d/xinetd 49 EOF 50 51 </userinput></screen></para> 52 <para>Add the run level symlinks:</para> 53 <para><screen><userinput> 54 chmod 754 /etc/rc.d/init.d/xinetd && 55 ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc0.d/K300xinetd && 56 ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc1.d/K300xinetd && 57 ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc2.d/K300xinetd && 58 ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S300xinetd && 59 ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc4.d/S300xinetd && 60 ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc5.d/S300xinetd && 61 ln -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 70 should prove quite entertaining. This file may contain entries 71 similar to the following: </para> 72 73 <para><screen><userinput> 74 Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not 75 executable [line=29] 76 Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server - 77 DISABLING SERVICE [line=29] 78 Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not 79 executable [line=42] 80 </userinput></screen></para> 81 82 <para>These errors are due to the fact that we don't have most of the 83 servers 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 15 xinetd.conf format.</para></sect3> 16 <sect3><title>xconv.pl</title> 17 <para>xconv.pl is a perl script used for converting inetd.conf files 18 to 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 && 7 make && 8 make 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;"/> 5 Version used: &xinetd-version; 6 Package size: &xinetd-size; 7 Estimated Disk space required: &xinetd-buildsize;</screen> 8 9 <para>xinetd is the eXtended InterNET services daemon, a secure 10 replacement 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 1 1 <!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;"> 2 2 <?dbhtml filename="xinetd.html" dir="server"?> 3 <title>xinetd </title>3 <title>xinetd-&xinetd-version;</title> 4 4 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; 6 11 7 12 </sect1> 8 13