![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script for turning processes in etc/inetd.conf on and off | thomi39 | SUN Solaris | 0 | 03-18-2008 07:48 PM |
| linux.conf.au: Tying up all those loose ends - iTWire | iBot | UNIX and Linux RSS News | 0 | 11-26-2007 10:00 AM |
| Cannot edit inetd.conf??? | shorty | UNIX for Dummies Questions & Answers | 2 | 03-08-2007 12:13 PM |
| Linux file corresponding to HP-UX inetd.conf | jyotipg | UNIX for Advanced & Expert Users | 2 | 08-14-2003 06:31 AM |
| inetd.conf file = gone on my home linux box | nemex | UNIX for Dummies Questions & Answers | 2 | 12-26-2001 09:51 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
inetd.conf in linux
I need to put the following line in inetd.conf:
stats stream tcp nowait nobody /usr/local/bin/mrtgsysinfo mrtgsysinfo but my version of linux don't seem to allow that, ie there is no inetd.conf. How do i set that up in linux (red hat enterprise 3). |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Go to the /etc/xinetd.d directory. You'll need to create a file (usually named after the program) and put your entries in there. Something like this (don't take my word for it, check out the xinetd man page):
Code:
service stats
{
server = /usr/local/bin/mrtgsysinfo
user = nobody
socket_type = stream
protocol = tcp
wait = no
}
|
|
#3
|
|||
|
|||
|
Thanks for the reply, still stuck
However when i try to do the following , which works on all my solaris boxes.....
telnet otlnx001 7260 Trying 172.16.32.241... I get.... telnet: Unable to connect to remote host: Connection refused obviously i am missing something, both hosts.allow and hosts.deny are empty. |
|
#4
|
|||
|
|||
|
error when running xinetd in debug
I also ran xinetd in debug mode. It gave me the following error:
06/10/24@11:37:08: ERROR: 366 {service_fill} Port not specified and can't find service:stats with getservbyname |
|
#5
|
|||
|
|||
|
That's why I said to man xinetd. I gave you a quick and dirty file that may have no relation to what you really need
Based on the site you probably grabbed this from (http://www.dmzs.com/~dmz/projects/mrtgsystemload.html) and your error message, you still need to update /etc/services. Quote:
Carl |
|
#6
|
|||
|
|||
|
Already did that
I already had the line in the services file. I also tried your ports= in the xinetd file but it did not change anything.
|
|
#7
|
|||
|
|||
|
Could you please let me know which OS are you using? If you are using redhat or fedora. seems iptables are blocking the port.
Let me know Prashant, |
|||
| Google The UNIX and Linux Forums |