LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   xinetd vs. init.d scripts? (http://www.linuxquestions.org/questions/linux-general-1/xinetd-vs-init-d-scripts-494249/)

rsmccain 10-20-2006 08:01 PM

xinetd vs. init.d scripts?
 
Why would someone choose to use xinetd over init.d and vice versa?

Thanks,
Ryan

binary_y2k2 10-20-2006 11:15 PM

Huh? xinetd is a replacement for inetd not init

rsmccain 10-21-2006 05:08 AM

understood
 
Quote:

Originally Posted by binary_y2k2
Huh? xinetd is a replacement for inetd not init

but they both handle the startng of services.

why would i start an ftp server with xinetd as opposed to using an init.d script? or vice versa.

adilturbo 10-21-2006 12:36 PM

hi friends

i think xinetd which replaces inetd (internet daemon)is a super-server that listens only from all servers internet ports(internet services). but initd it controles all daemons.if you noticed xinetd is included in the /etc/init.d/.i do not know if i'm sure for that.

cheers adil

binary_y2k2 10-22-2006 02:38 AM

Yes, init starts services at boot and stops them at shutdown. inetd, which is run from init, starts internet/network services when a port is connected to. If a network service is started by inetd then a new instance is started for each connection. Then when the connection is closed, the service exits.
If the service is run from init then it is only started once at boot and is always running.

You can run an ftp server from inetd if you don't expect much use as it's only really running when a connection is established.

rsmccain 10-22-2006 04:33 PM

......
 
Quote:

Originally Posted by binary_y2k2
Yes, init starts services at boot and stops them at shutdown. inetd, which is run from init, starts internet/network services when a port is connected to. If a network service is started by inetd then a new instance is started for each connection. Then when the connection is closed, the service exits.
If the service is run from init then it is only started once at boot and is always running.

You can run an ftp server from inetd if you don't expect much use as it's only really running when a connection is established.

that answers my question.. thanks!


All times are GMT -5. The time now is 02:50 AM.