LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Adding a Service in inetd (https://www.linuxquestions.org/questions/linux-newbie-8/adding-a-service-in-inetd-317008/)

Icky_Joe 04-25-2005 01:06 PM

Adding a Service in inetd
 
Hello everyone. I am brand new to this site and to LINUX. I am currently working my UNIX 8 month trainee position and have been tasked to add a service in etd. I have a couple of questions reference this.

First Q: Do I add this service in "/etc/services"?
Question 2: How do you do this?

I can't seem to figure out how to add a service......

ahwkong 04-25-2005 01:54 PM

Re: Adding a Service in inetd
 
Quote:

Originally posted by Icky_Joe


First Q: Do I add this service in "/etc/services"?

no

Quote:

Question 2: How do you do this?

[/B]
(Since I am not using inetd now, so I recall it from memory) Edit /etc/inetd.conf. There are already some services defined inside and you simply copy and paste and make some modification for your use.

If it is possible, try use xinetd. It is easier to configure.

twantrd 04-25-2005 03:27 PM

Add the service into /etc/inetd.conf. Xinetd is only for redhat I believe.

-twantrd

Icky_Joe 04-26-2005 06:35 AM

Thanks
 
Thank you both for the info. I appreciate it.
Now I just need to know how to edit the xinetd.config file? When I use VI and try to :wq! it tells me I don't have permission to change the file.

uzairkhan 04-26-2005 09:05 AM

try doing an

su

before u do it.

only root can edit that file, so either "su" or login as root and do it. better to use "su " though


All times are GMT -5. The time now is 01:31 AM.