Every once in a while we have that same issue. Then we do a WRKACTJOB and look under the QHTTPSVR subsystem and check to see if there is a ZENDPHP7 job that has a function something like "php-cgi." For us that is the job that does not end all the time. If it is out there we just end it with an option 4. We have never been able to figure out why this does not end all the time.
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Don Brown via WEB400
Sent: Friday, November 01, 2019 3:51 AM
To: Web Enabling the IBM i(AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx>
Cc: Don Brown <DBrown@xxxxxxxxxx>
Subject: Re: [WEB400] Ending HTTP Servers - How to know they are ended
Thank you for the reply.
What does the "system" procedure do ?
My issue is that the http server jobs are not ending and I am looking for a way to determine if and when the jobs have ended so I can restart them.
Appreciate the response.
Don Brown
From: <iseriesstuff@xxxxxxxxx>
To: "'Web Enabling the IBM i\(AS/400 and iSeries\)'"
<web400@xxxxxxxxxxxxxxxxxx>
Date: 01/11/2019 06:29 PM
Subject: Re: [WEB400] Ending HTTP Servers - How to know they are
ended
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>
I use Scott K http_url_get as follows. I use it to start the server if down.
D system PR 10I 0 extproc('system')
D i_cmd * value options(*string)
url = '
http://www.mywebsite.com';
myFile = '/tmp/website.html' + %trim(x'00'); rc = http_url_get(url:myfile);
if rc > -1; // still up
system('endtcpsvr *http httpsvr(myserver)'); endif;
-----Original Message-----
From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Don Brown via
WEB400
Sent: Friday, November 1, 2019 12:57 AM
To: web400 <web400@lists.midrange.comweb400@xxxxxxxxxxxxxxxxxx>
Cc: Don Brown <DBrown@xxxxxxxxxx>
Subject: [WEB400] Ending HTTP Servers - How to know they are ended
We occasionally have a problem with the HTTP servers for Zend Server where they need to be restarted.
Generally this occurs if there is a timeout accessing a database file if backups have a lock on the file - but that is another story and we are also addressing that problem.
My problem is that when I issue the ENDTCPSVR SERVER(*HTTP)
HTTPSVR('zendphp7') command;
a) Control is returned before the servers are actually ended
b) Sometimes for an unknown reason some/all the servers do not end
c) We do not know when all the servers are actually ended
d) If the command fails how do I actually stop these servers from a CL program
I presume the best option is to issue the endtcpsvr command then wait a while then extract a list of jobs selectively to a temporary table and query that table for a count of jobs and then read the list and do an endjob *immed for each job found then wait some more then repeat ?
Is there a better option ?
Appreciate any suggestions.
Don Brown
______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
______________________________________________________________________
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
______________________________________________________________________
______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
______________________________________________________________________
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.