LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-20-2006, 08:01 PM   #1
rsmccain
Member
 
Registered: Apr 2004
Location: Louisiana
Distribution: SUSE
Posts: 154

Rep: Reputation: 30
xinetd vs. init.d scripts?


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

Thanks,
Ryan
 
Old 10-20-2006, 11:15 PM   #2
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Huh? xinetd is a replacement for inetd not init
 
Old 10-21-2006, 05:08 AM   #3
rsmccain
Member
 
Registered: Apr 2004
Location: Louisiana
Distribution: SUSE
Posts: 154

Original Poster
Rep: Reputation: 30
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.
 
Old 10-21-2006, 12:36 PM   #4
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Rep: Reputation: 30
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
 
Old 10-22-2006, 02:38 AM   #5
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
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.
 
Old 10-22-2006, 04:33 PM   #6
rsmccain
Member
 
Registered: Apr 2004
Location: Louisiana
Distribution: SUSE
Posts: 154

Original Poster
Rep: Reputation: 30
......

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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
init scripts lvgandhi Debian 2 10-11-2005 03:44 AM
Moving vsftpd from xinetd to /etc/rc.d/init.d rajesh_b Linux - Software 1 01-18-2005 12:16 PM
Difference between init.d, xinetd and running service as a dameon jstephens84 Linux - Newbie 1 09-13-2004 07:19 PM
i'm not /etc/rc.d/init.d/xinetd file in my RH9,who can post it. Linuxjia Linux - Networking 1 02-16-2004 10:26 PM
Scripts in /etc/rc.d/init.d correro Linux - General 1 03-13-2003 10:47 PM


All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration