In your QSTRUP,
0040.00 STRTCP STRSVR(*YES) STRIFC(*YES) STRPTPPRF(*YES) +
0041.00 STRIP6(*NO) /* CHGIPLA STRTCP *NO ; NEED +
0042.00 TO STRTCP IN QSTRUP TO DISABLE IPV6 */
0043.00 MONMSG MSGID(CPF0000) /* T */
DLYJOB DLY(30)
MONMSG MSGID(CPF0000)
QSYS/STRSBS SBSD(Your sbs)
MONMSG MSGID(CPF0000)
Paul
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Patrik Schindler
Sent: Sunday, January 2, 2022 12:59 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Custom Subsystems / TCPIP-Start
Hello & happy new year,
I have defined some custom subsystems with ASJs starting some socket listeners. These will end with error as long as TCP/IP isn't started.
Aside from creating a loop in my applications to simply try again to allocate a socket and sleep some seconds after failure, instead of just exiting — which other options can you recommend?
I'm especially interested in ways to postpone start of my own SBS' until TCP/IP has successfully started (instead of blindly starting them in QSTRUP).
Dissecting how TCP/IP is started, it's an ASJ doing nothing else but STRTCP, I probably could add entries to QATOCSTART, but this would mean to change a system file. Something I want to do only as a last resort.
Thanks!
:wq! PoC (V4R5, model 150, just reminding ;-) )
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.