Open System Services Management and Operations Guide (G06.29+, H06.07+)

Operating the OSS Environment
Open System Services Management and Operations Guide527191-005
2-25
Making OSS Application Processes Persistent with
the Kernel Subsystem
consideration means that an OSS persistent process that runs in more than
one processor (an OSS persistent process with a valid CPU attribute) must be
started from within a script that uses an OSS shell run command with a
-name flag of the form:
run -name base_name$ZCPU...
See the osh(1) and run(1) reference pages either online or in the Open System
Services Shell and Utilities Reference Manual for more information about the
-name flags.
An OSS persistent process does not need to run in the same processor as the
OSH process that starts it. The OSH command -cpu flag can be used in the
STARTUPMSG attribute to start the OSS persistent process in a specific, currently
available processor. For example:
STARTUPMSG "-cpu n -p /bin/sh ..."
starts an OSS shell (-p /bin/sh) in processor n.
The -cpu flag is not compatible with use of the CPU attribute and the $ZCPU
environment variable. Do not use the -cpu flag when the same OSS persistent
process will be run in more than one processor.
See the osh(1) reference page either online or in the Open System Services
Shell and Utilities Reference Manual for more information about the -cpu flag.
All features available to the process when it is started from an OSS shell command
line are available when it is started by the persistence manager:
°
The /etc/profile file that provides the initial environment for all processes
when an OSS shell is started can provide the initial environment for the
process; to use this feature, you must use the -ls flag in the OSH command
that launches the process (must be part of the STARTUPMSG attribute).
See the osh(1) reference page either online or in the Open System Services
Shell and Utilities Reference Manual for more information about the -ls flag.
°
The .profile file associated with the user ID during logon to OSS can
provide the initial environment for the process; the USERID attribute provides
the user ID that determines the .profile file used.
°
Any argument can be passed to the process that would be entered in a
command line; the STARTUPMSG attribute contains these arguments.
°
Environment variables (env and environ) can be retrieved by the process.
°
The standard input, output, and error files are supported, with redirection
governed by the rules that apply to the OSH command. If the process requires
that tty devices provide or use these files, then redirection to appropriate
terminal simulation devices must be done in the STARTUPMSG attribute.