× 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.



As a thought, why not just add a strtcpsvr command to your start up program?


Darryl Freinkel
iPad

On Jan 14, 2016, at 7:26 PM, Aaron Bartell <aaronbartell@xxxxxxxxx> wrote:

Thanks Bryan and Chuck. Ended up doing the following without having to
create any other *PGMs. The key is PGM(QSYS/QCMD).

CHGRTGE SBSD(QHTTPSVR/QHTTPSVR) SEQNBR(11) PGM(QSYS/QCMD)

​Thanks,​
Aaron Bartell
litmis.com - Services for open source on IBM i


On Thu, Jan 14, 2016 at 3:51 PM, Aaron Bartell <aaronbartell@xxxxxxxxx>
wrote:

I am trying to configure nginx to automatically start when the QHTTPSVR
subsystem is started and have been following this(n1) ITJungle Joe
Hertvik tutorial.

Here's what I've done:
CRTJOBD JOBD(QGPL/NGINX) RQSDTA('QSH CMD(''/opt/freeware/sbin/nginx -c
/www/myserver/conf/nginx.conf'')') JOBQ(QHTTPSVR/QZHBHTTP) USER(MYUSER)

ADDAJE SBSD(QHTTPSVR/QHTTPSVR) JOB(NGINX_LS) JOBD(QGPL/NGINX)

ADDRTGE SBSD(QHTTPSVR/QHTTPSVR) SEQNBR(11) CMPVAL(*ANY) PGM(*RTGDTA)
CLS(QGPL/QBATCH)

ENDSBS SBS(QHTTPSVR) OPTION(*IMMED)

STRSBS SBSD(QHTTPSVR/QHTTPSVR)

The tutorial only took me through the CRTJOBD and ADDAJE command. Then I
got a routing entry mismatch error so I did the ADDRTGE command and that
fixed it. Now I am getting the below error and am unsure what I should do
because I *thought* it would invoke the command specified in the CRTJOBD
RQSDTA, but it is trying to find a *PGM.

5770SS1 V7R2M0 140418 Job Log
MYSYS1 01/14/16 16:42:54 EST Page 1
Job name . . . . . . . . . . : NGINX_LS User . . . . . . :
MYUSER Number . . . . . . . . . . . : 024348
Job description . . . . . . : NGINX Library . . . . . :
QGPL
MSGID TYPE SEV DATE TIME FROM
PGM LIBRARY INST TO PGM LIBRARY INST
CPC1116 Completion 50 01/14/16 16:42:54.383665
QWTMMERH QSYS 00D3 *EXT *N
From user . . . . . . . . . : QSYS

Message . . . . : CPC1116 Program
in library not found.
Recovery . . . : Do one of the
following and try the request again: --
Create the program. -- Change the
library or program name in the routing
entry (CHGRTGE command). -- Change
the library or program name on the
program start request.



n1 - http://www.itjungle.com/fhg/fhg031605-story03.html

Thoughts?

Aaron Bartell
litmis.com - Services for open source on IBM i
--
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.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

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.