Open System Services Management and Operations Guide (G06.25+, H06.03+)
Operating the OSS Environment
Open System Services Management and Operations Guide—527191-002
2-23
Making OSS Application Processes Persistent with
the Kernel Subsystem
Making OSS Application Processes Persistent with the Kernel
Subsystem
Just as the OSS Monitor can be made a persistent process using the SCF interface to
the NonStop Kernel subsystem, the same SCF interface provides commands to
configure, start, and stop OSS application processes that are persistent. A persistent
process is automatically started when certain criteria are met and then automatically
restarted if events make the original copy of the process unavailable. Such processes
are called generic processes in SCF documentation. This subsection provides
suggestions for possible uses of this facility; for a complete description of the
commands, process attributes, and parameters, see the SCF Reference Manual for
the Kernel Subsystem.
Generic OSS processes have the following characteristics:
•
Both shell scripts and compiled programs can be made persistent.
•
Each OSS process is started by configuring a copy of the Guardian OSH utility to
start it.
•
Each process has the following configurable attributes under the persistence
manager (attributes are the same as for a Guardian generic process):
°
AUTORESTART
°
CPU – Applies to names used for both NAME and ASSOCPROC attributes
°
HOMETERM – Always the terminal used by the TACL for the ADD command
°
MEMPAGES
°
NAME – Always identifies a copy of OSH
°
PRIMARYCPU
°
PRIORITY – Always use the default priority
°
PROGRAM – Always specifies $SYSTEM.SYSTEM.OSH
°
SAVEABEND
°
STARTMODE – Always must be MANUAL
°
STOPMODE
°
TYPE
°
STARTUPMSG – Specifies a string of up to 128 characters to pass to OSH
°
USERID
•
As an alternative to specifying the HOMETERM attribute, you can use OSS shell
input/output redirection at the end of the STARTUPMSG value. For example:
STARTUPMSG "... <- >>out 2>>err"
The appended information is interpreted by the OSS shell as follows:
<-
closes standard input