Last active
April 26, 2016 21:10
-
-
Save phpdave/3cadbbd20ef43408bf623315b6264b79 to your computer and use it in GitHub Desktop.
Modify your startup program to auto start Zend Server after IPL or reboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Find where your startup program is. (Program called after an IPL (Reboot)) | |
DSPSYSVAL SYSVAL(QSTRUPPGM) | |
#Create a source file | |
CRTSRCPF FILE(MYLIB/MYFILE) | |
#Put the startup Program in that file | |
RTVCLSRC PGM(SOMELIB/THESTARTUPPGM) SRCFILE(MYLIB/MYFILE) SRCMBR(MYPROGM) | |
STRPDM | |
#Option 3 work with members | |
LIB: MYLIB | |
FILE: MYFILE | |
#Option 2 Edit | |
#Add this to your source file | |
STRTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR) | |
#Creat the CL Program | |
CRTCLPGM PGM(MYLIB/MYFILE) SRCFILE(MYLIB/MYFILE) | |
#Point the system value of the startup program to the new program | |
CHGSYSVAL SYSVAL(QSTRUPPGM) VALUE('MYLIB/MYFILE') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment