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



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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.