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

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 v1_0 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 ed19912 was ed19912, checked in by Larry Lawrence <larry@…>, 22 years ago

symlink modifications, testing needed

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

  • Property mode set to 100644
File size: 2.4 KB
Line 
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/K49xinetd &&
56ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc1.d/K49xinetd &&
57ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc2.d/K49xinetd &&
58ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc3.d/S22xinetd &&
59ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc4.d/S22xinetd &&
60ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc5.d/S22xinetd &&
61ln -s /etc/rc.d/init.d/xinetd /etc/rc.d/rc6.d/K49xinetd
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
Note: See TracBrowser for help on using the repository browser.