Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how xinted works?

Posted on 2001-09-02
9
221 Views
Last Modified: 2010-04-21
Hello,

     I have compiled Apache from source. Now I want that Apache should be started automatically when system starts. It is written in Apache documentation that if ServerType is written as standalone in httpd.conf then an entry is automatically made into inetd but I think inetd is not installed but xinetd is installed.

I want to know what entries are required to be made in xinetd.conf.
Apache is installed in /wwwroot.

Secondly I want to know when services written in xinetd.conf are started. In xinetd manual it is written that whenever request for that service is received that service is started by xinetd. But those service are not started when request is made.
For example this is the entry made in xinetd.conf for imap server:

imap
{
     disable = no
     socket_type = stream
     protocol = tcp
     wait = no
     user = root
     server = /usr/sbin/imapd
     log_on_success += DURATION USERID
     log_on_failure += USERID
}

I want to know when IMAP service will be started.

If I want to know if I make this entry in xinetd.conf will apache start automatically.

apache
{
     disable = no
     socket_type = stream
     protocol = tcp
     wait = no
     user = root
     server = /wwwroot/bin/apachectl start
     log_on_success += DURATION USERID
     log_on_failure += USERID
}


So these are the problems faced......

Sukhwinder Singh
0
Comment
Question by:Sukhwinder Singh
  • 5
  • 2
  • 2
9 Comments
 
LVL 4

Accepted Solution

by:
newmang earned 150 total points
ID: 6449402
You don't want it started by xinetd or inetd - these daemons listen for incoming connections then start the appropriate server daemon - for example, if a user telnets in the (x)inetd will start the telnet daemon for the connection then drop the server once the connection is dropped. You really want apache running full time.

Apache's install should place a file httpd in the /etc/rc.d/init.d directory that will stop and start the apache server.

In the /etc/rc.d/rc3.d directory you can then make a softlink to the /etc/rc.d/init.d/httpd file called Sxxhttpd where xx is a number such as 85.

This will cause httpd to be started during the transition into runlevel 3

Cheers - Gavin
0
 

Author Comment

by:Sukhwinder Singh
ID: 6458621
But in imap documentation it is written that some entires need to be made in xinetd.conf. I have made these entries as above. But imap service doesn't start.
I want to know when imap service will start if entry is made in xinetd.conf?
0
 
LVL 5

Expert Comment

by:garboua
ID: 6460759
what distro do you have installed and the version.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:Sukhwinder Singh
ID: 6462322
Hello
I have installed imap-2001.

SS
0
 
LVL 5

Expert Comment

by:garboua
ID: 6471211
dude, I meant linux distro and version :-)
0
 

Author Comment

by:Sukhwinder Singh
ID: 6472197
Linux version is RedHat 7.1
0
 

Author Comment

by:Sukhwinder Singh
ID: 6478167
Thank you apache is started at system start.
But apache install did not place httpd under etc/initd/.

Please also answer the question about imap I asked.
SSRuprai
0
 
LVL 4

Expert Comment

by:newmang
ID: 6478241
SSRuprai

It should be under /etc/rc.d/init.d as I said in my post.

imap should be started by the xinetd super-server when a connection request comes in on port 143. If it doesn't then look at the xinetd logfile and the system log file(s)

Cheers - Gavin
0
 

Author Comment

by:Sukhwinder Singh
ID: 6480958
Yes Gavin I wrote it wrong I meant /etc/rc.d/init. httpd isn't there but everything works as I created a softlike as you said.
One Last question please tell me how to send imap request as I have made entries in xinetd.conf because when I try to access it from php it dosen't work.
I mean actual command to be used from command line?
Thank you.

SS
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question