Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-13-2003, 04:17 AM
|
#1
|
LQ Newbie
Registered: Jan 2003
Posts: 15
Rep:
|
Xinetd
Could anyone answer a few questions concerning a problem I have with my xinetd. I am using RH 7.1 and when I get the status of xinetd is says "xinetd dead but pid file exists". When I check the log messages it says:-
"xinetd: missing service keyword [line 15]" and
"xinetd: missing } in last service entry [line 18]"
I have 3 files called xinetd one in /etc/rc.d/init.d which is a binary. One in /var/lock/subsys and the other in /usr/sbin which is a text file I have that looked at. My questions are these. How do you count the line numbers, ie are hashed and empty lines counted? Whichever way I count I cannot see an error with lines 15 or 18.
Am I looking at the right file, could it be the binary file that has the problem?
Also if the file is damaged can it be repaired or could I just get another ccopy of it?
Thanking you in advance
|
|
|
01-13-2003, 07:31 AM
|
#2
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
If I'm reading your post correctly then it looks like you have a few things messed up.
First of all when it comes with the message "xinetd dead but pid file exists". It means the process isn't running but there is still a pid file somewhere. I assume that would be the file /var/lock/subsys/xinetd. You could check the contents of the file and it should contain just a number which would have been it's last pid. If that's the case then you can safely remove that file, which should get rid of the first message.
Now the rest is a bit confusing. The /usr/sbin directory is where you would store binary files. And the /etc/rc.d/init.d directory is where you usually store script files which start and stop services. So the binary file should be in /usr/sbin and the script in the other directory.
Then for the messages in the log file. Depending on how it's set up there can be one global config file called something like /etc/xinetd.conf. Or there can also be a directory which contains a file per service. Usually the directory is something like /etc/xinet.d
I don't have redhat but you should look for one of those to correct the files. And usually comment lines are counted.
|
|
|
01-13-2003, 08:23 AM
|
#3
|
Member
Registered: Jan 2002
Location: Bucharest
Distribution: RedHat, AIX
Posts: 39
Rep:
|
try service xinetd restart
and then service xinetd status
what is the output?
|
|
|
01-13-2003, 09:03 AM
|
#4
|
LQ Newbie
Registered: Jan 2003
Posts: 15
Original Poster
Rep:
|
mik
Sorry I told you wrong about the location of the files the binary one is in /usr/sbin and the text one is etc/rc.d/init.d
There is a pid file and it does, as you say, contain a number. This number is not mentioned when I type ps -ef. I have deleted this file but it is re-created everytime I start xinetd.
I am still confused about the line numbering because line 15 in the text file is hashed out which makes me wonder if it is the binary file that causes the problem.
baranero
When I type service xinetd restart the response is:-
Stopping xinetd: [FAILED]
Starting xinetd: [ ok ]
and the status is the same as before ie
"xinetd dead but pid file exists"
Thanks
|
|
|
01-13-2003, 09:47 AM
|
#5
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
Well the file should be created every time you start up xinetd. But it should also be removed when xinetd is stopped. Obviously that is what's not working properly.
Which file are you looking in for the configuration of the services? It shouldn't be the one in /etc/rc.d/init.d. That's just a start/stop script for the daemon. The configuration files are in one of the locations I mentioned before.
|
|
|
01-14-2003, 05:09 AM
|
#6
|
LQ Newbie
Registered: Jan 2003
Posts: 15
Original Poster
Rep:
|
mik
I have found the xinetd.conf file it was, as you said, in /etc. I deleted all the blank lines so it was easier to count then commented out the offending lines and it is now working.
So I was looking at the wrong file all along (what a idiot)
Thank you for your help
|
|
|
06-25-2007, 06:56 AM
|
#7
|
LQ Newbie
Registered: Jun 2007
Posts: 2
Rep:
|
Problem starting xinetd service
hi ,
I'm trying to access CVS on server from remote system i get the following error message ,
******************************************
Logging in to server:admin@localhost:2401/home/cvs/repository
CVS password:
cvs [login aborted]: connect to localhost(127.0.0.1):2401 failed: Connection refused
********************************************
when i did the root cause analysis i found that the service xinetd is not working properly
[root@ODC admin]# /sbin/service xinetd status
xinetd is stopped
[root@ODC admin]# /sbin/service xinetd stop
Stopping xinetd: [FAILED]
[root@ODC admin]# /sbin/service xinetd start
Starting xinetd: [ OK ]
so i could not figure out what is wrong with the service
can you please help me to solve this issue ?
regards
apj
Last edited by apj_iitr; 07-06-2007 at 06:39 AM.
|
|
|
04-18-2012, 02:33 AM
|
#8
|
LQ Newbie
Registered: Apr 2012
Posts: 7
Rep:
|
try to check vsftpd file
i was facing similar kind of problem and in my case it was vsftp file which was causing the crashing of xinetd service.
edit and cofigure it correctly, restart xinetd and now it is working ok.
|
|
|
All times are GMT -5. The time now is 10:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|