source: server/other/xinetd/xinetd-config.xml@ cce6b02e

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_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since cce6b02e was cce6b02e, checked in by Larry Lawrence <larry@…>, 21 years ago

Chapter 23 intro

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

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[5f5a393]1<sect2>
[cce6b02e]2<title>Configuring <application>xinetd</application></title>
[5f5a393]3
4<sect3><title>Config files</title>
[5bc2a01]5
[e80cc95]6<para><filename>/etc/xinetd.conf</filename></para>
[5f5a393]7
[5bc2a01]8</sect3>
9
10<sect3><title>Configuration Information</title>
11
12<para>Create the <filename>xinetd.conf</filename> file with the following commands:</para>
13
14<screen><userinput><command>cp /etc/xinetd.conf /etc/xinetd.conf.bak</command></userinput></screen>
15
16<para>Insure the path to all daemons is <filename
17class="directory">/usr/sbin</filename>, rather than the default path of
18<filename class="directory">/usr/etc</filename>:</para>
19
20<screen><userinput><command>sed -e 's/etc/sbin/g' xinetd/sample.conf &gt; /etc/xinetd.conf</command>
21</userinput></screen>
22
23<para>The format of the <filename>/etc/xinetd.conf</filename> is
24documented in the xinetd.conf man page. Further information can be
25found at <ulink url="http://www.xinetd.org"/>.</para>
26
[cce6b02e]27<para>Create the <command>xinetd</command> boot script:</para>
[5bc2a01]28
[cce6b02e]29<screen><userinput><command>cat &gt; /etc/rc.d/init.d/xinetd &lt;&lt; "EOF"</command>
[5f5a393]30#!/bin/bash
31# Begin $rc_base/init.d/xinetd
32# Based on sysklogd script from LFS-3.1 and earlier.
33# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
34source /etc/sysconfig/rc
35source $rc_functions
36case "$1" in
37 start)
38 echo "Starting xinetd..."
39 loadproc /usr/sbin/xinetd
40 ;;
41 stop)
42 echo "Stopping xinetd..."
43 killproc /usr/sbin/xinetd
44 ;;
45 reload)
46 echo "Reloading xinetd..."
47 killall -HUP xinetd
48 ;;
49 restart)
50 $0 stop
51 sleep 1
52 $0 start
53 ;;
54 status)
55 statusproc /usr/sbin/xinetd
56 ;;
57 *)
58 echo "Usage: $0 {start|stop|reload|restart|status}"
59 exit 1
60 ;;
61esac
62# End $rc_base/init.d/xinetd
[cce6b02e]63<command>EOF
[5bc2a01]64chmod 754 /etc/rc.d/init.d/xinetd</command></userinput></screen>
[5f5a393]65
66<para>Add the run level symlinks:</para>
[7319b78]67
[5bc2a01]68<screen><userinput><command>ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc0.d/K49xinetd &amp;&amp;
[17ced16]69ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc1.d/K49xinetd &amp;&amp;
70ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc2.d/K49xinetd &amp;&amp;
[84d2b63]71ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S23xinetd &amp;&amp;
72ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc4.d/S23xinetd &amp;&amp;
73ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc5.d/S23xinetd &amp;&amp;
[5bc2a01]74ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc6.d/K49xinetd</command></userinput></screen>
[5f5a393]75
[cce6b02e]76<para>Now, we'll use our new boot script to start <command>xinetd</command>: </para>
[5bc2a01]77
78<screen><userinput><command>/etc/rc.d/init.d/xinetd start</command></userinput></screen>
[5f5a393]79
80<para>Checking the <filename>/var/log/daemon.log</filename> file
[5bc2a01]81should prove quite entertaining. This file may contain entries
82similar to the following:</para>
[5f5a393]83
[cce6b02e]84<screen><userinput>Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rlogind is not
[5f5a393]85executable [line=29]
86Aug 22 21:40:21 dps10 xinetd[2696]: Error parsing attribute server -
87DISABLING SERVICE [line=29]
88Aug 22 21:40:21 dps10 xinetd[2696]: Server /usr/sbin/in.rshd is not
[cce6b02e]89executable [line=42]</userinput></screen>
[5f5a393]90
91<para>These errors are due to the fact that we don't have most of the
[cce6b02e]92servers that <command>xinetd</command> is trying to control installed yet.</para>
[5bc2a01]93
94</sect3>
[5f5a393]95
[5bc2a01]96</sect2>
Note: See TracBrowser for help on using the repository browser.