×
Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) 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.
Follow-Ups :
This mailing list archive is Copyright 1997-2026 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.