Editing the C-ISAM, DISAM, RMCobol, Dataflex, or Micro Focus Server Startup Procedure
Note:
All UNIX instructions must be entered as lowercase characters.
1. On your CONNX administrator computer, start a terminal emulator, and log on to UNIX.
2. Select the desired C-ISAM, DISAM, or Micro Focus server, and type the appropriate user name and password.
3. Use your favorite UNIX editor (Emacs, for example) to create a shell script from the following text:
# begin CONNX startup script
CNXDIR=path to CONNX <C-ISAM, DISAM, or Micro Focus>
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 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: CNXDIR=path to CONNX <C-ISAM, DISAM, or Micro Focus> server export CNXDIR sh$CNXDIR/connxserver START [port number]

If the above table does not contain example for your UNIX flavor, contact CONNX Technical Support for details.
The CONNX C-ISAM, DISAM, or Micro Focus 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 and 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.