Skip to content

Instantly share code, notes, and snippets.

@phpdave
Last active April 26, 2016 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdave/3cadbbd20ef43408bf623315b6264b79 to your computer and use it in GitHub Desktop.
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
#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