DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Installing and Running Applications under OKP

Installing and Running Applications under OKP

The easiest way to bring an application from OpenServer over to a UnixWare 7 system running LKP is to make sure that all the necessary file systems for that application are mounted locally when you create the OpenServer system image (or copy it over the network). This method has the added advantage of also carrying over to OKP any startup scripts in rc.d directories, so that your OpenServer application starts up automatically under OKP. Applications can also be copied maually from an OpenServer system using standard OpenServer utilities to the OKP system, or installed fresh using OpenServer installation utilities.

Once an application is installed under OKP, use the openserver(1) command to run it. Applications running under OKP can be debugged using a special version of the UnixWare 7 truss command, osrtruss(1).

Installing OpenServer Applications under OKP

There are a number of methods for installing OpenServer applications under OKP:


Copy the application as part of the OpenServer image
When you create an OpenServer image using osragent, or copy one over the network during installation or using the migrate utility, everything installed on the system's local disks is copied to OKP, including any applications installed. When using this method, be sure that all resources and file systems needed by the applications are mounted locally. See osragent(1M) and migrate(1M).

Copy the application manually
Applications that are installed on an existing OpenServer system can be migrated to OKP by copying files from the OpenServer system over the network or in archives, using standard OpenServer tools such as cpio, tar, pax, etc. These can then be installed under OKP using the same tools.

Use OpenServer tools under OKP
The following OpenServer installation commands are available:

Running an application under OKP

Use the openserver(1) command to run OpenServer applications under OKP.

To enter the OKP environment and run an application from the command line, you would typically enter a series of commands like the following:

   $ openserver
   [openserver] cd application_path
   [openserver] ./command arg...
where application_path is the path to the application's startup directory, and command is the name of the command that starts the application. Using openserver in this manner launches an OpenServer shell with an OpenServer execution environment. For example, when you execute the man command at the [openserver] prompt, you are accessing the OpenServer man command and manual pages.

Another way to do launch an OpenServer application is to remain in UnixWare mode, change directory to where the application executable is located, and execute openserver as follows:

   cd /openserver/application_path
   openserver ./command arg...

This method is intended primarily for use in OpenServer application startup scripts, and (UnixWare) system startup scripts that launch OpenServer applications when the system boots.

To start your OKP applications automatically on boot, create a startup script in /etc/init.d that runs the required commands, as in the example above. (Your application may require additonal commands specific to the application.) Place a link to the script in /etc/rc2.d, following the naming convention described on the rc2(1M) manual page.

Troubleshooting OpenServer applications

Some applications may experience minor problems, due to implementation differences between UnixWare 7 and OpenServer 5. Use the information in this chapter to debug your application, and see Porting, integration, and compatibility in the Development Kit documentation for compatibility and porting information.

The first step in resolving such problems is to check the information in ``OKP Limitations'' to see if your application is using facilities that are not supported under OKP.

The following sections provide information about identifying and resolving some of the most common issues that can occur.

Tracing a problem

The osrtruss(1) utility is used to trace system calls and signals in OpenServer applications. See the osrtruss(1) manual page for how to use osrtruss under OKP. To run an application under osrtruss from a UnixWare shell:

   cd /openserver/<app_path>
   osrtruss -f [truss_options] openserver "./myapp arg1 arg2 ..."

Note the following:

Installation failures

If your application has problems detecting your System Type, System Release, or executing installation and/or shell scripts, it may be due to a file that is not present on your system. Try copying the appropriate file from an OpenServer system. If you do not have one available, see the manual pages for OpenServer at the Product Documentation web site for a description of the file and try to re-create the file yourself in the appropriate location under /openserver.

Application tuning

Though uncommon, if the application fails while kernel tunable parameters are being set, try setting the equivalent UnixWare 7 tunable parameters by hand and then installing or running the application again. For information about UnixWare 7 tunable parameters, see Tunable Parameters.

Terminal behavior

If your application is a console or ``character-based'' application, it is likely to execute correctly under OKP. If not, try setting the poll_delay_compatibility tunable to change what happens for OpenServer binaries that poll with zero timeout.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004