1832871 Members
3808 Online
110048 Solutions
New Discussion

/etc/services

 
SOLVED
Go to solution
titu
Regular Advisor

/etc/services

If I want to add some services in /etc/services then after adding those is it required to restart the network services ?

Thanks in advance.

Titu
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: /etc/services

Hi:

> if I want to add some services in /etc/services then after adding those is it required to restart the network services ?

Generally there is no need to add anything to '/etc/services'. If you have a valid reason, though, there is no restart of anything necessary. Your application code can reference it as needed.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor
Solution

Re: /etc/services

Shalom,

/etc/services is a reservations file. The answer actually varies from service to service.

If for example you add an entry for oracle on say port 1521, you don't have to restart oracle.

Other services would require a reboot. Depends how they are written.

It is probably a good idea to restart services you have impacted by your /etc/services changes.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
titu
Regular Advisor

Re: /etc/services

Thanks for quick responses.
TTr
Honored Contributor

Re: /etc/services

/etc/services is a naming mechanism for network ports. It associates names with port numbers, just like the /etc/hosts file associates hostnames with IP addresses.

I have seen applications that will not run if the port that they use is not in the /etc/services file by the specific service name they expect. Normally you don't need to restart anything.

If you are using NIS and "services" is one of the NIS maps, you need to update the NIS services map to all the NIS clients.
Suraj K Sankari
Honored Contributor

Re: /etc/services

Hi,
>>If want to add some services in /etc/services then after adding those is it required to restart the network services ?

No need to restart anything.

Suraj