We have OPSMVS defined to SSM as the prereq to JES2, RACF, and OMVS, and it stops itself when they are all down.
Our shutdown procedure launches a SUB=MSTR system REXX program, that watches for a list of tasks to be all down. When they are, if issues the HALT EOD, issues the VARY sysname,OFF and replies to it. This way, the system does not crash while OPSMVS is running.
We launch the system REXX program with this command:
"F AXR,REIPL,TIMEINT=0,TSO=NO",
"WAITFOR(OPSS) XCFCMD(VARY XCF,&SYSNAME,OFF)"
It can also do VARY XCF,&SYSNAME,OFF,REIPL
That is cool because it goes down and comes back up, using the same load parm.