Configuration information
Please note that this only is a sample configuration and you
will MOST CERTAINLY have to edit this to suite your needs.
YOUR SECURITY WILL BE AFFECTED IF YOU DON’T
Now we need to make sure that all of the above was successful.
Ok so you saw nothing happen, now that is a good thing.
If you saw any error messages or didn’t get returned to the prompt, go back and make sure that you have followed the instructions to the letter.
Now we need to make xinetd run at boot-up by copying and pasting this entire code segment into the console window in one go.
Code:
cat > /etc/rc.d/init.d/inetd << "EOF"
#!/bin/sh
# Begin /etc/rc.d/init.d/inetd
#
# Include the functions declared in the /etc/init.d/functions file
#
source /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n "Loading xinet super daemon"
loadproc /usr/sbin/xinetd
;;
stop)
echo -n "Stopping xinet super daemon"
killproc /usr/sbin/xinetd
;;
restart)
$0 stop
/usr/bin/sleep 1
$0 start
;;
status)
statusproc /usr/sbin/xinetd
;;
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit 1
;;
esac
# End /etc/init.d/inetd
EOF
Now you need to make this script executable and create the symbolic links by copying and pasting this entire code segment into the console window in one go.
Code:
chmod 755 /etc/rc.d/init.d/inetd &&
ln -s /etc/rc.d/init.d/inetd /etc/rc.d/rc1.d/K110xinetd &&
ln -s /etc/rc.d/init.d/inetd /etc/rc.d/rc2.d/K110xinetd &&
ln -s /etc/rc.d/init.d/inetd /etc/rc.d/rc3.d/S30xinetd &&
ln -s /etc/rc.d/init.d/inetd /etc/rc.d/rc4.d/S30xinetd &&
ln -s /etc/rc.d/init.d/inetd /etc/rc.d/rc5.d/S30xinetd &&
ln -s /etc/rc.d/init.d/inetd /etc/rc.d/rc6.d/K110xinetd
REBOOT it is VERY important that you do, if you do not you WILL run into problems later.
OK so that is probably the most difficult step of this long process done.