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



Nope.. this is just an internal web service that I want running all the
time. PM2 works great to start it, restart it, check logs, etc. I haven't
experienced what you have with it.

I'm using it as a web service for Node to do some things that just aren't
that feasible in RPG. NodeILE would be cool to use instead of having a
server running all the time. But I don't see a way to call node from RPG
or ILE languages directly, which would be cool. (yes, I'm aware of 3rd
party products and data queues, etc). But maybe there's something new in
the works with V7R3 and up that I've missed?

RPG --- > call node webservice using GETURI and return JSON to it.

That's what I'm doing now with the web service. Works great. I just want
to make sure the node job is up and running. With apache it's easy to
check/restart if needed by checking by job name.


Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #12 <https://www.bvstools.com/mailtool.html>: Both Text
and HTML email support

On Fri, Feb 28, 2020 at 10:23 AM Richard Schoen <richard@xxxxxxxxxxxxxxxxx>
wrote:

I had a similar experience recently where a job was set up with PM2, but I
was able to get around using PM2 because this was a job that really just
needed scheduling once per day so I just ran the Node app and it ends when
complete.

With PM2 the job was ending up with all kinds of extra running threads
because there doesn't appear to be a good way to determine where a node
thread job is coming from to tell which specific PM2 service it belongs to.

Is that what you're experiencing ?

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------

message: 3
date: Fri, 28 Feb 2020 09:50:38 -0600
from: B Stone <bvstone@xxxxxxxxx>
subject: Best way to monitor for Running Node server on IBM i

I thought about posting this in open source, but because it's more general
to jobs/IBM i I thought I would start here.

I am putting together some web service jobs that will be called from IBM i
jobs (RPG, CL, etc). These web services will be node.js servers.

I have PM2 installed but I am wondering if there is any way to check that
specific jobs are running in the PASE environment, mainly node.js servers.

I do have a check function set up (ie, "are you running?") that I can use
GETURI to check if the server is up, but was curious if there were any
other integrated functions on the IBM i side of things to check if they are
up. Maybe a job or set of jobs that I can query to see if they are running
vs a ping/request/etc.

I may be overthinking it, but because these services will be a vital role
in the applications running I want to make sure that it is simple to check
for these jobs and start if not running.

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #15 <https://www.bvstools.com/mailtool.html>: The
ability to add a Footer to each email sent using an IFS stream file.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.