Kbase P79309: Starting Corvu ABA server gives an error about /etc/inetd.conf
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/5/2004 |
|
Status: Unverified
FACT(s) (Environment):
Corvu 4.2
FACT(s) (Environment):
Linux Intel
FACT(s) (Environment):
Progress 9.1D
SYMPTOM(s):
Starting Corvu ABA server gives an error about /etc/inetd.conf
Unable to find /etc/inetd.conf when starting Corvu ABA server
CAUSE:
This is a known Corvu issue
FIX:
CorVu ABA installation within a Linux environment is the same as the installation for the UNIX environment. However, on some of the more recent Linux distributions, including Mandrake and RedHat, are different.
The ABA setup program normally completes the following tasks.
· Verify the installation directory location
· Check for the availability of port, 7632
· Add the cvbroker service description and port to /etc/services
· Add the cvbroker service start information to /etc/inetd.conf
· Create the configuration directory
On systems where xinetd is installed, the setup program completes most of these tasks, but exits with a warning because there is not an inetd.conf file on an xinetd machine.
Within Unix, internet services are typically started by the Internet Daemon, inetd.
However, many Linux distributions have recently adopted a new version of this tool called xinetd. Because xinetd is not configured in the same way as inetd, and is not installed on all versions of Linux, the CorVu ABA setup program does not support it.
The following outlines the basic procedure for configuring ABA to utilize xinetd.
1. Find the location of the xinetd configuration directory
2. Find the location of the cvbroker program
3. Enable the cvbroker service
4. Create the configuration directory
PREREQUISITES
Before attempting the following procedure, one must have a good understanding of Linux administration. Because of the vast differences between distributions, it is not possible to write an accurate, step-by-step procedure. Instead the procedure is written more loosely than would normally be acceptable.
Be sure that the file, xinetd.conf is present on the system. Some Linux distributions allow a user to install a workstation configuration that does not include the ability to run daemons.
Make sure that the documented installation procedure has been followed through the point where setup fails.
Be sure that the setup script failed because the file, inetd.conf is not present on the system.
PROCEDURE
Find the location of the xinetd configuration directory
First, locate the file, xinetd.conf.
% find / -name "xinetd.conf" -print
/etc/xinetd.conf
Once this file is found, find the keyword "includedir", within the file. While not mandatory, it is standard practice for xinetd installations to use this method to configure services.
% grep includedir /etc/xinetd.conf
includedir /etc/xinetd.d
If includedir (similar to the example above) is not present, it is likely that someone has customised your installation. You will have to get your UNIX administrator to help you modify this procedure to fit your environment.
Once the "includedir" has been identified, change to that directory. The CorVu ABA service will be enabled by adding a new file to this folder.
% cd /etc/xinetd.d
% ll
total 10
-rw-r--r-- 1 root root 297 Mar 4 03:47 chargen
-rw-r--r-- 1 root root 317 Mar 4 03:47 chargen-udp
-rw-r--r-- 1 root root 327 Feb 27 22:08 cvs
-rw-r--r-- 1 root root 297 Apr 12 13:21 custom
-rw-r--r-- 1 root root 297 Mar 4 03:47 daytime
-rw-r--r-- 1 root root 317 Mar 4 03:47 daytime-udp
-rw-r--r-- 1 root root 289 Mar 4 03:47 echo
-rw-r--r-- 1 root root 308 Mar 4 03:47 echo-udp
-rw-r--r-- 1 root root 321 Mar 4 03:47 time
-rw-r--r-- 1 root root 317 Mar 4 03:47 time-udp
The files in the "includedir" (example above) vary from site to site.
Find the location of the cvbroker program
The cvbroker program can be found by finding the home directory of the user, "corvu".
Check the example below:
% echo ~corvu
/home/corvu
%
If the command in the example above prints, ~corvu, then the corvu user needs to be set up on the computer (the procedure for which is outside of the scope of CorVu suppo.rt).
The cvbroker file will always be in the corvu home directory, under servers/cvbroker.
% ll /home/corvu/servers/cvbroker
-rwxr-x--- 1 corvu users 82532 Sep 16 2001 /home/corvu/servers/cvbroker
Enable the cvbroker service
A file called cvbroker needs to be created in the xinetd configuration directory (the includedir). Creating and editing files is beyond the scope of CorVu support.
An example xinetd configuration file for the ABA service, cvbroker, follows. The server location value in this example reflects the value shown in the example above.
# Description: The CorVu Broker Service
service cvbroker
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /home/corvu/servers/cvbroker
}
After this configuration has taken place - it will be necessary to reset the xinetd process. The example below finds the process ID for xinetd, and resets the process. Be sure to change the process ID in the kill command with the process ID reported by the ps command.
% ps -ef | grep xinetd
corvu 14627 53 0 13:49:10 pts/0 0:00 grep xinetd
root 20 1 0 13:41:29 pts/0 0:00 xinetd -stayalive
% kill -USR2 20
Create the configuration directory
This is relatively straight forward. Log in as CorVu and create the directory conf.
login: corvu Password: ......
% mkdir servers/conf
WARNING
The xinetd configuration file shown above will work with the xinetd software available in RedHat 7 and Mandrake 8 GNU/Linux distributions. It is possible (though unlikely) that the file format as shown above will be changed in future versions of xinetd..