× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



John,

TCP Server starts up asynchronously. That is, you call STRTCP from your
QSTRUP and the next line in your QSTRUP executes while TCP server begins
to start up on its own. If that next line is STRTCPSVR SERVER(*HTTP) the
http server instance won't find TCP active. I've found a couple ways to
handle this. 1) put in a DLYJOB after the STRTCP or 2) put the STRTCPSVR
SERVER(*HTTP) down at the end of the QSTRUP so other start up tasks fill
the time until TCP is available.

Your http server jobs are themselves submitted from the STRTCPSVR
command under user profile QTMHHTTP. All the object authorities acrue to
user QTMHHTP1. Look for logs with those profiles. The jobs will run (or
attempt to run) in subsystem QUSRWRK or QSYSWRK or QHTTPSVR depending on
what version of the OS you're using. You should check that subsystem is
started in your QSTRUP before calling STRTCPSVR although the job should
just sit in the JOBQ until the subsystem starts.

Dan Kimmel


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Rusling
Sent: Friday, July 16, 2010 3:35 PM
To: 'midrange-l@xxxxxxxxxxxx'
Subject: STRTCPSVR not starting up an http server instance in startup
program.

I have added a line to our startup CL program to start an http server,
it looks like this -



STRTCPSVR SERVER(*HTTP) HTTPSVR(CGIPROD '-vv')



Anyway, this http server does not start up, automatically which is my
intention.



STRTCP is run ahead of it, in the startup program, afaik that works
fine, ie



MONMSG MSGID(CPF0000)

STRTCP

MONMSG MSGID(CPF0000)

DLYJOB DLY(15)



Is there a server, that should be started ahead of strtcpsvr for this to
work right?



Any tips are greatly appreciated, in the absence of that, I plan to move
the strtcpsvr command to the very very end of the startup cl program in
hopes of correcting the issue.



Thanks,



John


John Rusling
iSeries Developer - JBLC
651 659-2856

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.