Sukhwinder Singh
asked on
how xinted works?
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what distro do you have installed and the version.
ASKER
Hello
I have installed imap-2001.
SS
I have installed imap-2001.
SS
dude, I meant linux distro and version :-)
ASKER
Linux version is RedHat 7.1
ASKER
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
But apache install did not place httpd under etc/initd/.
Please also answer the question about imap I asked.
SSRuprai
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
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
ASKER
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
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
ASKER
I want to know when imap service will start if entry is made in xinetd.conf?