|
It's already done that way.
Aaron,
It's already done that way.
DSPSBSD QCTL
3. Autostart job entries
Job Job Description Library
QSTRUPJD QSTRUPJD QSYS
DSPJOBD JOBD(QSYS/QSTRUPJD)
Request data . . . . . . . . . . . . . . . . . . : CALL QSYS/QWDAJPGM
This process starts up TCP/IP and a bunch of other stuff. Including
checking your IPL attributes to see if you ran
CHGIPLA STRRSTD(*YES)
If you haven't set your system to start up in restricted state then it
runs the program in
WRKSYSVAL SYSVAL(QSTRUPPGM)
The IBM supplied default one is normally QSYS/QSTRUP. That one you CAN do
a RTVCLSRC of.
CRTSRCPF FILE(QTEMP/QCLSRC)
RTVCLSRC PGM(QSYS/QSTRUP) SRCFILE(QTEMP/QCLSRC)
DSPPFM FILE(QTEMP/QCLSRC) MBR(QSTRUP)
The STRTCP is part of QWDAJPGM and not QSTRUP.
So, if you've brought your system into restricted state the theory is that
you can run STRSBS (controlling subsystem, usually QBASE or QCTL) and have
it bring it out of restricted state.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: Aaron Bartell <aaronbartell@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 01/18/2016 09:12 AM
Subject: Re: Autostart PASE server in QHTTPSVR *SBS using ADDAJE
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
That's actually how I have done things in the past and I considered it.
The advantage of an autostart job tied to a subsystem is you don't need to
IPL for the auto start to take place and instead you can restart the
subsystem.
On Jan 18, 2016 7:58 AM, "Darryl Freinkel" <dhfreinkel@xxxxxxxxx> wrote:
As a thought, why not just add a strtcpsvr command to your start upto
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
<aaronbartell@xxxxxxxxx>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
QHTTPSVRwrote:
I am trying to configure nginx to automatically start when the
-csubsystem 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
USER(MYUSER)/www/myserver/conf/nginx.conf'')') JOBQ(QHTTPSVR/QZHBHTTP)
Then
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.
Ithat
got a routing entry mismatch error so I did the ADDRTGE command and
shouldfixed it. Now I am getting the below error and am unsure what I
doCRTJOBD
because I *thought* it would invoke the command specified in the
QSYSRQSDTA, 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 . . . . . . . . . :
Program
Message . . . . : CPC1116
thein library not found.
Recovery . . . : Do one of the
following and try the request again: --
Create the program. -- Change
Changelibrary or program name in the routing
entry (CHGRTGE command). --
listlistthe 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
To post a message email: MIDRANGE-L@xxxxxxxxxxxxquestions.
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
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
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.
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.
--
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 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.