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



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.


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.