Here is the command I originally tried.
QSH CMD('exec /QOpenSys/QIBM/ProdData/OPS/Orion/orion')
I wanted to make this very simple so the idea of having a command based call in QSTRUP seemed to be the way to go. I created a CLP with the above request in and a front end command, when I ran it from the command line it worked but always through up a standard output message about needing to be run a QTMHHTTP and that it would be submitted automatically for me. I built the CLP with adopted authority of *OWNER and added it into the QSTRUP program. After the IPL there was still no Orion jobs running in the HTTP subsystem!
I checked the joblog and nothing looked out of place, the authority issues had gone away but still no program start. I then looked at the orion script which is used to start it up as per IBM’s instructions. This gave me a clue, when the script is called it checks if it is running as QTMHHTTP and if not submits a job to do so (its a submitted job calling itself). So I simply took that part of the code and added it to my CLP, compiled the program and set the authority to *OWNER again. After I IPL’d Orion was successfully started.
Here is the final code for the call to the command in QSTRUP,
The command is pretty straight forward as it takes no parameters and simply fronts ends the following CLP
ADDLIBLE LIB(SASLIB) MONMSG MSGID(CPF2103) STRORION RMVLIBLE LIB(SASLIB) MONMSG MSGID(CPF2104 CPF2110)
That’s all there was to it. This information was posted in the Ryver forums as well for those who are following the discussion there. I have added it here for those who do not.
MONMSG MSGID(CPF0000) SBMJOB CMD(QSH CMD('exec + /QOpenSys/QIBM/ProdData/OPS/Orion/orion')) + JOB(QORION) JOBD(QHTTPSVR/QZHBHTTP) + OUTQ(*USRPRF) USER(QTMHHTTP) + RTGDTA(HTTPWWW) SYSLIBL(*SYSVAL) + CURLIB(*USRPRF) INLLIBL(*JOBD) + CCSID(*USRPRF) ALWMLTTHD(*YES) ENDPGM