× 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'm using PM2 to start my Node jobs and wanted to add this to QSTRUP.

I know a couple years ago I had it working, but now it's not.

I can call the script from a bitvise xterm, but when I use QSH to call the
same script I get some odd errors.

The script is simple:
==================
#!/QOpenSys/pkgs/bin/bash

PATH="/QOpenSys/pkgs/lib/nodejs12/bin:/QOpenSys/pkgs/bin:$PATH";
export PATH;

# This is for idb-connector, etc
NODE_PATH="/QOpenSys/pkgs/lib/nodejs12/lib/node_modules";
export NODE_PATH;

pm2 stop all;
pm2 delete all;
pm2 start /nodejs/bvstools/nodejsdemo/bin/www --name "njsdemo";
=================================================

when using
QSH CMD('"/home/bvstone/startNode.sh"')

called from a CL, I get the following:

=================================================
[208]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)'
failed.

/home/bvstone/startNode.sh: 001-0078 Process ended by signal 5.

[209]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)'
failed.

/home/bvstone/startNode.sh: 001-0078 Process ended by signal 5.

[210]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)'
failed.

/home/bvstone/startNode.sh: 001-0078 Process ended by signal 5.

Press ENTER to end terminal session.

[1665]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)
' failed.

/home/bvstone/startNode.sh: 001-0078 Process ended by signal 5.

[1666]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)
' failed.

/home/bvstone/startNode.sh: 001-0078 Process ended by signal 5.

[1667]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)
' failed.

/home/bvstone/startNode.sh: 001-0078 Process ended by signal 5.

Press ENTER to end terminal session.

[1926]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)
' failed.

/home/bvstone/startNode.sh: line 10: 1926 IOT/Abort trap (core
dump
ed) pm2 stop all

[1927]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)
' failed.

/home/bvstone/startNode.sh: line 11: 1927 IOT/Abort trap (core
dump
ed) pm2 delete all

[1928]: ../src/node.cc:560:void node::PlatformInit(): Assertion `(err) ==
(0)
' failed.

/home/bvstone/startNode.sh: line 13: 1928 IOT/Abort trap (core
dump
ed) pm2 start /nodejs/bvstools/nodejsdemo/bin/www --name "njsdemo"

Press ENTER to end terminal session.

===================================================

This is mostly greek to me.

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.