LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Having a problem with xinetd and trying to get R-1 to work (https://www.linuxquestions.org/questions/linux-newbie-8/having-a-problem-with-xinetd-and-trying-to-get-r-1-to-work-738699/)

africa4444 07-08-2009 03:08 PM

Having a problem with xinetd and trying to get R-1 to work
 
I am really not very experienced with linux and have only just started working off the command line in windows as well
I know the basics but I am trying to install R-1 and I was having a lot of difficulties and figured out that it was that xinetd was not running
so I tried to run it
service xinetd start

and it said unecognized service
so then I installed xinetd and there was already a xinetd.d directory with all of the processes i needed with the .conf file but so when i run
xinetd -d
Code:

09/7/8@19:47:36: ERROR: 18196 {find_next_entry} missing service keyword [file=/etc/xinetd.conf] [line=5]
09/7/8@19:47:36: ERROR: 18196 {handle_includedir} Unable to read included directory:  [file=/etc/xinetd.conf] [line=16]
09/7/8@19:47:36: ERROR: 18196 {find_next_entry} missing service keyword [file=/etc/xinetd.conf] [line=18]
09/7/8@19:47:36: WARNING: 18196 {skip_entry} missing } in last service entry [file=/etc/xinetd.conf] [line=18]
Service defaults
        Bind = All addresses.
        Only from: All sites
        No access: No blocked sites
        No logging

09/7/8@19:47:36: DEBUG: 18196 {cnf_start_services} mask_max = 0, services_started = 0
09/7/8@19:47:36: CRITICAL: 18196 {init_services} no services. Exiting...

my xinetd.conf file looks like this:
Code:

# Begin /etc/xinetd
# Configuration file for xinetd
#

defaults
{
      instances      = 60
      log_type        = SYSLOG daemon
      log_on_success  = HOST PID USERID
      log_on_failure  = HOST USERID
      cps            = 25 30
}

# All service files are stored in the /etc/xinetd.d directory
#
includedir /etc/xinetd.d
# End /etc/xinetd
EOF


this is what one of the files in xinetd.d looks like

Code:

# default: off
# description: The kerberized rlogin server accepts BSD-style rlogin sessions, \
#              but uses Kerberos 5 authentication.
service klogin
{
        flags          = REUSE
        socket_type    = stream
        wait            = no
        user            = root
        server          = /usr/kerberos/sbin/klogind
        server_args    = -5
        disable        = yes
}

I really dont no what im doing but I need to get xinetd running so that i can finish installing R-1 Thanks for the help

bathory 07-08-2009 04:27 PM

Open /etc/xinetd.conf with vi and look for any weird characters, because other than that the file looks OK.
Then try to enable a service, for example for the rlogin xinetd.d control file you've posted, use "disable = no" and see if xinetd works.

jschiwal 07-08-2009 05:56 PM

xinetd is a service in itself. Enable the service, instead of manually starting the xinetd program. One way you can check if it is running with `ps -u root | grep xinet'. You can also use the `service' command or if your distro has it `chkconfig'. Most distro's also have a GUI configuration utility to enable or disable services, and determine for which run levels to enable a service.

There are two flavors of linux that differ somewhat in how services are started, and the commands you can use. How the run levels used differ as well. You may want to indicate which distro you have installed.

Also look in your distro's configuration tools. You should be able to enable both xinetd and the service that xinetd handles, and let it deal with details. The "disable=no" line you posted is for the individual klogin service. There is a line like this for each service given in /etc/xinetd.d/*.

africa4444 07-09-2009 12:42 PM

none of that worked
I looked at the xinetd.conf file it looked fine in vi
i changed the disable to no in klogin
however I cant don anything with the service command because for klogin and xinetd it says unrecognized service and they didnt appear in the list when i did
service --status-all
and im using red hat linux i guess that what you're are looking for.
I think my problem is in the install maybe
but i did run
./configure
make
make install

and then i moved my xinetd.conf file to where it wanted is there perhaps something I need to do to make xinetd recognized as a service? I do have chkconfig for what its worth but im not sure what i should do with that and then I don't know how to get at a that GUI if it exists. Does it make a difference that i am doing the install remotely through putty?

bathory 07-09-2009 12:58 PM

Why didn't you install xinetd from a rpm package? That's why "service xinetd" does not work.

africa4444 07-09-2009 01:16 PM

Thanks for the help I didnt do that because I dont know what an rpm package is.
I'll work on finding that out now and let you no how it goes.

africa4444 07-09-2009 01:54 PM

Thanks for your help I got xinetd working unfortunately R-1 isnt working still but I am getting help from their tech support


All times are GMT -5. The time now is 12:33 AM.