Discussion Locked

Linux SWAT

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi.
I have RedHat 7.0. SWAT doesnt want to show itself. Here is what I did:
1)I dont have the inetd.conf, but I do have the xinetd.d and xinetd.conf. I edited both at different times, but neither seemed to work. I made sure the edit pointed to thebianaries at /usr/sbin/swat/
2)I checked my /etc/services, and found swat listed for port 901, which is what I want.
3)The command ps -ae showed programs with process numbers. I was unable to locate either the xinetd.d or the xinetd.conf. I need to find the process number to stop and restart the xinetd file.
4)So thats it. Hope you can help
Thanks,,,,,,,,,Pat

5 replies

by madhumurty

Firstly you will need to make an entry in the xinetd.conf file under /etc .Add the following entries :
service swat
{
socket_type = stream
wait = yes
user = root
server = /sbin/swat
server_args = --http
}

Save the file and restart xinetd service by typing the following command :
/etc/rc.d/init.d/xinetd restart

access the swat by using in the web browser.If you still cannot access it then return the original settings that you made in the /etc/xinetd.conf file and restart the xinetd service and then access the swat using ...best of luck
MM

by schannachie

Hi,

Above you have an answer that is how to get an xinet.conf file using vi editor or whatever text editor. And it's very keen. If you have installed inetd daemon and you are planning installing a inetd.conf file, you can copy any inetd.conf from most linux red hat or slackware, they are the same ascii files. Or you can type them as the xinetd.conf
The ps-ae command can't find the pid because you don't have any xinetd.conf file and the xinetd can't be configured. The way to start a daemon manualy is i.e :
named -f named.conf -nohup
+ + +--> no hang upflag
+ +
+ +----> config file flag and path
+--------> daemon name

Stands the same for xinetd, inetd, or other daemons.

Hope ithelps

This discussion is closed to new replies.