<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Services in xinetd and /etc/rc.d/init.d in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812969#M23977</link>
    <description>'xinetd' is what's called a super-server.  It handles the incoming TCP and UDP connections for a number of 'trivial' services.&lt;BR /&gt;&lt;BR /&gt;Others, such as 'httpd' and 'mysqld' are stand-aline services.  They handle their own socket connections.&lt;BR /&gt;&lt;BR /&gt;Each service is different, though some can be used in both manners (Samba can be used both ways, but is much more efficient as a stand-alone).&lt;BR /&gt;&lt;BR /&gt;Generally, things with high-volume connection rates (mail, web, database) will be stand-alone, whilst things which only have occasional connections (telnet, time, etc) are launched from the super-server.&lt;BR /&gt;&lt;BR /&gt;To find out what's running as what on a RedHat (or Fedora or SuSE) machine, you can use the 'chkconfig --list' command.&lt;BR /&gt;&lt;BR /&gt;If it has a run-level beside it, it is launched from '/etc/init.d/&lt;SERVICE&gt; [start|stop|status]' (or using the 'service' command).&lt;BR /&gt;&lt;BR /&gt;If it only has the one column of on/off, it's launched from 'xinetd' (and can be controlled using 'chkconfig &lt;SERVICE&gt; on/off').&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/SERVICE&gt;&lt;/SERVICE&gt;</description>
    <pubDate>Tue, 27 Jun 2006 03:31:12 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2006-06-27T03:31:12Z</dc:date>
    <item>
      <title>Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812967#M23975</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; For some services( httpd &amp;amp; mysqd ), we are using /etc/rc.d/init.d/httpd &amp;amp; /etc/rc.d/init.d/mysqld.&lt;BR /&gt;&lt;BR /&gt; For others( telnet &amp;amp; ftp ), we are using /etc/xinetd.d/telnetd &amp;amp; /etc/xinetd.d/wu-ftpd.&lt;BR /&gt;&lt;BR /&gt; Why these difference? And when to use /etc/rc.d/init.d/ and /etc/xinetd.d/ for servies?</description>
      <pubDate>Tue, 27 Jun 2006 02:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812967#M23975</guid>
      <dc:creator>SGK</dc:creator>
      <dc:date>2006-06-27T02:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812968#M23976</link>
      <description>You can get your answer from reading the man of xinetd.&lt;BR /&gt;"xinetd  performs  the  same function as inetd: it starts programs that provide Internet services.  Instead of having such servers started  at system  initialization time, and be dormant until a connection request arrives, xinetd is the only daemon process started and it  listens  on all  service  ports for the services listed in its configuration file. &lt;BR /&gt;&lt;BR /&gt;So  far,  the  only  reason for the existence of a super-server was to conserve system resources by avoiding to fork a lot of processes which might  be  dormant  for most of their lifetime."&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2006 03:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812968#M23976</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-06-27T03:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812969#M23977</link>
      <description>'xinetd' is what's called a super-server.  It handles the incoming TCP and UDP connections for a number of 'trivial' services.&lt;BR /&gt;&lt;BR /&gt;Others, such as 'httpd' and 'mysqld' are stand-aline services.  They handle their own socket connections.&lt;BR /&gt;&lt;BR /&gt;Each service is different, though some can be used in both manners (Samba can be used both ways, but is much more efficient as a stand-alone).&lt;BR /&gt;&lt;BR /&gt;Generally, things with high-volume connection rates (mail, web, database) will be stand-alone, whilst things which only have occasional connections (telnet, time, etc) are launched from the super-server.&lt;BR /&gt;&lt;BR /&gt;To find out what's running as what on a RedHat (or Fedora or SuSE) machine, you can use the 'chkconfig --list' command.&lt;BR /&gt;&lt;BR /&gt;If it has a run-level beside it, it is launched from '/etc/init.d/&lt;SERVICE&gt; [start|stop|status]' (or using the 'service' command).&lt;BR /&gt;&lt;BR /&gt;If it only has the one column of on/off, it's launched from 'xinetd' (and can be controlled using 'chkconfig &lt;SERVICE&gt; on/off').&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/SERVICE&gt;&lt;/SERVICE&gt;</description>
      <pubDate>Tue, 27 Jun 2006 03:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812969#M23977</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-06-27T03:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812970#M23978</link>
      <description>If xinetd is used to start a service, xinetd will listen on the service's network port. When someone tries to connect to that service, xinetd starts the real service process and forwards the incoming connection to it. At the same time, xinetd can offer some extra functionality: TCPwrapper/libwrap access control, limiting the number of simultaneous connections and a standard logging for connection attempts.&lt;BR /&gt;&lt;BR /&gt;If a service is started using a script in /etc/rc.d/init.d/, it will start immediately. There is no "helper" for access control, logging and connection limiting functions: the service process must handle all these things as necessary.&lt;BR /&gt;&lt;BR /&gt;If a service starts up through xinetd, it must be able to service requests almost immediately after the real service process starts up. If the service process needs to do a lot of preparation after startup before it can service the client's request, startup through xinetd is unsuitable.&lt;BR /&gt;&lt;BR /&gt;Mysqld needs to open the database(s) and check its validity before it can service requests. Httpd may need some time to generate random numbers for SSL session keys and/or HTTP digest authentication. Sshd requires some time at startup to generate SSH session keys.&lt;BR /&gt;&lt;BR /&gt;For httpd, response time is critical: at worst case, each page element (each frame, each individual image...) may be requested through a separate connection, so the number of connections per unit of time can easily grow large. If all the startup work was done separately for each request, the user would think "this server is slow".&lt;BR /&gt;&lt;BR /&gt;For telnet and FTP, a bit of slowness at the beginning of the connection does not matter so much.</description>
      <pubDate>Tue, 27 Jun 2006 04:39:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812970#M23978</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2006-06-27T04:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812971#M23979</link>
      <description>Actually, OpenSSH is one of those daemons that can be set up both as a stand-alone daemon, or using xinetd.&lt;BR /&gt;&lt;BR /&gt;It's just not as efficient to do it via xinetd.</description>
      <pubDate>Tue, 27 Jun 2006 06:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812971#M23979</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-06-27T06:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812972#M23980</link>
      <description>Can I use TcpWrapper without xinetd? i.e) I am going to use the /etc/rc.d/init.d/ for service and control the access of the service using Tcpwrapper? &lt;BR /&gt;&lt;BR /&gt;If I can able to use TcpWrapper with /etc/rc.d/init.d/ and without xinetd means, then whats the important of xinetd in this case?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jun 2006 00:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812972#M23980</guid>
      <dc:creator>SGK</dc:creator>
      <dc:date>2006-06-28T00:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812973#M23981</link>
      <description>Without xinetd (or some other kind of inetd) you cannot use tcpwrapper, because the "wrapping" mechanism is built around the functionality of *inetd.&lt;BR /&gt;&lt;BR /&gt;(*inetd = any kind of inetd, meaning a traditional inetd, xinetd or any other replacement for the traditional inetd)&lt;BR /&gt;&lt;BR /&gt;If your service has support for libwrap built-in, it can use the same access control mechanism as tcpwrapper does. However, tcpwrapper can be added without no changes to the service program's source code; adding libwrap support always requires source code changes.&lt;BR /&gt;&lt;BR /&gt;Neither tcpwrapper nor libwrap can limit the number of simultaneous connections. Xinetd can do that, and some services that are designed to be used without xinetd have their own facilities for doing that.&lt;BR /&gt;&lt;BR /&gt;The original point of *inetd is that it simplifies network service programming: in fact, you don't need to know anything about network socket programming to build a simple unicast TCP server using *inetd: you just need to make a program that uses the required protocol in stdin/stdout. You can test it on the command line, and when you plug it into *inetd, it handles the forwarding of the server program's stdin/stdout to the connected network socket... and there you have a network server program.&lt;BR /&gt;&lt;BR /&gt;This also means you can upgrade most TCP/IP services that use *inetd to IPv6 simply by plugging the services to an IPv6-aware *inetd.&lt;BR /&gt;&lt;BR /&gt;(There are exceptions, though: tcpwrapper and identd would need to be upgraded because they needs to access information *about* network sockets, but services like POP and IMAP should handle the transition just fine.)</description>
      <pubDate>Wed, 28 Jun 2006 01:56:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812973#M23981</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2006-06-28T01:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812974#M23982</link>
      <description>No, that's not entirely true.&lt;BR /&gt;&lt;BR /&gt;Some stand-alone services use TCP wrappers, if it is compiled into them.&lt;BR /&gt;&lt;BR /&gt;For instance, SSHd and Sendmail have TCP Wrapper support built into them on most systems.&lt;BR /&gt;&lt;BR /&gt;MySQL and Apacye do not however, as they have their own way of allowing or denying services.&lt;BR /&gt;&lt;BR /&gt;Read the documentation for each service to find out more</description>
      <pubDate>Wed, 28 Jun 2006 03:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812974#M23982</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-06-28T03:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Services in xinetd and /etc/rc.d/init.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812975#M23983</link>
      <description>My apologies, please ignore last message.  Didn't read all of the other post :)</description>
      <pubDate>Wed, 28 Jun 2006 03:38:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/services-in-xinetd-and-etc-rc-d-init-d/m-p/3812975#M23983</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-06-28T03:38:06Z</dc:date>
    </item>
  </channel>
</rss>

