I would like to know what happen if I stop the inetd deamon in a server. Does it disconnect the users that are connected to the server ? If so what is the possibility to restart this deamon without to stop it ?
You will be stopping all TCP/IP and internet services on your server if you kill inetd. It will throw users out depending on how they connect to this server. For e.g. if they are connected through telnet. Yes.
Actually, I don't think it would throw out users who are already connected -- but no new users would be able to login, no mail would be received - no new TCP stuff at all. Inetd controls a lot of stuff.
The system would sort of shudder to a halt <smile>, not something you want to do. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
If you are trying to force inetd to re-read its
configuration file (inetd.conf) because you are
adding a new server or making any modification
to that file you want to be active, you don't
need to stop the daemon (and restart it), you can
simply send it a SIGHUP signal with: kill -HUP pid
(being pid the proc id of the daemon).
No, it doesn't disconnect any user, but sometimes
it's not effective, I mean, sometimes the changes
seems not be active after the re-reading of
the conf file (and I don't know the reason).
Anyway such case is rare.
regards Jose M. Blanco
MVP BrainBench for Unix admin.
This will, of course, re-read your inetd.conf file. I have done this MULTIPLE times when setting up network monitoring agengs, and never affected any users. In fact, I was rsh'd into the server as well, and my connection was persistent.
The only refresh command I can find is a systems call rather than a command and has to do the with the curses package; could you explain a bit more? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
Ok -- I see it, thx DG Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
users already connected will not terminated. if that was the case when we stop and start inetd for re-reading the configuration /etc/inetd.conf( kill -HUP pid) all the tcp services could have been stopped. but that is not so.
hope this helps
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.