Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

swat error : xinetd[3705]: missing service keyword [line=20]

Status
Not open for further replies.

Pietjeparasietje

Programmer
Jun 13, 2005
55
NL
Hi,

I've still got the problem of not being able to run swat. But I hope/think I found the source.
When my xinetd is restarted by /etc/rc.d/init.d/xinetd restart

My /var/log/messages gives the following message:

Code:
Jul  6 11:22:40 localhost xinetd: xinetd shutdown failed
Jul  6 11:22:40 localhost xinetd[3705]: missing service keyword [line=20]
Jul  6 11:22:40 localhost xinetd[3705]: missing } in last service entry [line=20]
Jul  6 11:22:40 localhost xinetd[3705]: 3705 {general_handler} (3705) Unexpected signal: 11 (Segmentation fault)
Jul  6 11:22:40 localhost last message repeated 9 times
Jul  6 11:22:40 localhost xinetd[3705]: 3705 {bad_signal} Received 10 signals in 1 seconds. Exiting...
Jul  6 11:22:40 localhost xinetd: xinetd startup succeeded

Does anyone know what's being meant by xinetd[3705]: missing } in last service entry [line=20] ??

Thanks,

Peter
 
Double check that each { has a corresponding }

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
In the config file(s) read by xinetd

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
But you would have no idea which files that could be, or how I could see what files he's reading?
 
What about man xinetd ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Ok thanks so far, but I cannot find the file where the error is coming from.
The only file that's being mentioned in man xinetd is config.h

I've checked all the config.h on my system but couldn't find what I was looking for.
 
Don't you have a /etc/xinetd.conf file ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Sure and it looks like this:

Code:
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

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

includedir /etc/xinetd.d
swat stream tcp nowait.400 root /usr/sbin/swat swat

Any ideas?
 
What about replacing this:
swat stream tcp nowait.400 root /usr/sbin/swat swat
By this ?
service swat
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
port = 901
disable = no
}


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Then he'll give me this error:

xinetd[3664]: bind failed (Address already in use (errno = 98)). service = swat

in my log
 
Check the files in the /etc/xinetd.d directory.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top