CONNX Data Integration Suite 14.8.0 | Installation Guide | Installation Steps | Installing Adabas SQL Gateway on UNIX | Editing the Adabas Server Startup Procedure
 
Editing the Adabas Server Startup Procedure
1. On your CONNX administrator computer, start a terminal emulator, and log on to UNIX.
2. Select the desired Adabas UNIX server, and type the appropriate user name and password.
3. Create a shell script:
# begin CONNX startup script
CNXDIR=path to CONNX Adabas server
export CNXDIR
case "$1" in
start)
sh $CNXDIR/connxserver START port number
;;
stop)
sh $CNXDIR/connxserver STOP port number
;;
restart|reload)
sh $CNXDIR/connxserver START port number
;;
esac
exit0
#end CONNX startup script
where port number is optional. The default value is 6500.
4. Save the document in the appropriate UNIX flavor. The following table contains example file names:
UNIX Flavor
File Name
LINUX
/etc/rc.d/rc5.d/S99connx
TRU-64
/sbin/rc2.d/S99connx
AIX
If you do not have rc#.d directories, where # is the run level number and generally 2 for multi-user, then you can put the following lines toward the bottom of the /etc/rc script. For example:
CNXDIR=path to CONNX Adabas server
export CNXDIR
sh$CNXDIR/connxserver START [port number]
The CONNX Adabas server automatically starts when you restart the system. To verify that it has started, type the following UNIX command after a command prompt in your UNIX system:
ps -ef|grep cnxrun
5. Check the log file in the CNXDIR directory to verify the start procedure.
Since the startup procedures vary between operating systems as well as UNIX flavors, the above examples should be used as a rough guide. Consult your operating system's system administration guide for the exact location of startup scripts and directories. You should be logged in as root to complete the script configuration and set the proper permissions on the script.