The POSIX subsystem can be monitored using the monitoring job variable $.SYS.POSIXSTATUS. To do this, start the POSIX subsystem with:
/START-SUBSYSTEM POSIX,MONJV=$.SYS.POSIXSTATUS
This monitoring job variable can be used to query both the statuses set by DSSM and the status of the POSIX subsystem. The following POSIX subsystem statuses are possible:
Time | Column 89 in MONJV: |
---|---|
before /START-SUBSYSTEM | NOT CREATED |
before “Subsystem ready” | IN CREATE |
before “POSIX ready” | CREATED |
after “POSIX ready” | *AVAILABLE |
after /STOP-SUBSYSTEM | IN DELETE |
after /STOP rejected | CREATED |
subsystem unloaded | NOT CREATED |
If a BS2000 session is not terminated properly with SHUTDOWN, the monitoring job variable $.SYS.POSIXSTATUS remains locked. Before it can be used again to monitor the POSIX subsystem, it must be unlocked with the following command:
/MODIFY-JV-ATTRIBUTES JV-NAME=$.SYS.POSIXSTATUS,
PROTECTION=*PARAMETERS(MONJV-PROTECTION=*NO)