Operating System - HP-UX
1833772 Members
2200 Online
110063 Solutions
New Discussion

Do I have to kick anything after changing /etc/services

 
SOLVED
Go to solution
S.Rider
Regular Advisor

Do I have to kick anything after changing /etc/services

A user needs me to add a couple tcp services to /etc/services for a database they are adding. It's always been done before on change weekends where the servers were being rebooted anyhow. I'd like to squeeze this one in earlier without a reboot which basically has to approved by royalty around here. I'm thinking that the /etc/services file is read for every request, so no reboot is necessary. Do I have to kick anything (like inetd) after I change the services file ?
Ride Boldly Ride, but watch out for El Dorado's
5 REPLIES 5
John Poff
Honored Contributor

Re: Do I have to kick anything after changing /etc/services

No, it should be pretty much like /etc/hosts and be read as needed.

JP
Patrick Wallek
Honored Contributor
Solution

Re: Do I have to kick anything after changing /etc/services

You might want to do an 'inetd -c' after the change just to be safe. Other than that nothing should be required.
A. Clay Stephenson
Acclaimed Contributor

Re: Do I have to kick anything after changing /etc/services

No, the lookups are done as needed. The exception would be if you were running NIS/NIS+ in which case you would have to push the new maps outs. Another possible exception would be if you changed the value of an existing services entry that already had services running. In that case, you would need to kill the daemons and restart them and if lauched by inetd then you would also need to send a SIGHUP to inetd (or inetd -c) to trigger a reconfiguration.
If it ain't broke, I can fix that.
DCE
Honored Contributor

Re: Do I have to kick anything after changing /etc/services

Issuing the inetd -c command is indeed the "safe" way

The following was pulled from the inetd man page

When invoked, inetd reads /etc/inetd.conf and configures itself to support whatever services are included in that file ....
-c Reconfigure the Internet daemon; in other words, force the current inetd to reread /etc/inetd.conf.


Dave
Jino.P.V
Frequent Advisor

Re: Do I have to kick anything after changing /etc/services

just do inetd -c

you are fine