Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you are using standard shells sh or bash, you can set up the command prompt environment for running LANSA for Linux with the following command:

     . {lansa_root}/x_lansa/bin/setenv.sh   

...

To start the Listener, you use the command (must be running as root):

     lcolctl start \{port\} 

where \{port\} is the Listener port number. If you do not specify a port number for the installer, the default port number is 4545. In case you forget what the current port number should be, you can check the configuration file for the Listener listen.dat.

For example:

     lcolctl start 4444 if 4444 

...

To stop the Listener, you use the similar command (must be running as root):

     lcolctl stop \{port\} 

For example:

     lcolctl stop 4444 

To check if the Listener is running, you use the command:

     lcolctl show 

If the Listener for the installation is running, for example, you will see something like:

     Port  PID  SID 
4545 15489

which shows that the Listener is running and listening on port number 4545 and its process id is 15489. Note that the SID column is no longer used in this release and should be usually blank.

You can also use the Linux standard ps command to check for all the Listeners (not just the current installation you are using) running on your system, e.g.:

     ps -ef | grep lco 

If the Listener is running, for example, on a Linux server, you will see something like:

     root     15489     1  0 Jul01 ?        00:00:00 /lansa/connect/lcolist: \[monitor\] 
root     15490 15489  0 Jul01 ?        00:00:00 /lansa/connect/lcolist: listening on port 4545  

...

If the Listener is stopped but it is not properly stopped with the lcolctl stop command, e.g. explicitly terminated by the system shutdown sequence, lcolctl show command may incorrectly show that the Listener is still running. If you attempt to start the Listener again with the lcolctl start command, the command will fail with a message like this:

     Port 4545 already in use   

...