|
you might want to put the command in a shell scrip and run that from CL.
make sure the PATH is correctly set in the script.
Bryan
Justin Taylor wrote on 3/18/2020 11:43 AM:
I'm having trouble running ActiveMQ from a CL command. It starts andruns fine, but the PID is blank. The blank PID prevents me from stopping
ActiveMQ. I don't have this problem when I start ActiveMQ from a shell.
log4j.properties to get details
From a shell:-bash-4.4$ /QOpenSys/pkgs/bin/activemq start
INFO: Loading '/QOpenSys/pkgs/lib/activemq/bin/env'
INFO: Using java '/QOpenSys/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and
INFO: pidfile created : '/QOpenSys/pkgs/lib/activemq/data/activemq.pid'(pid '38926')
-bash-4.4$(pid '')
From CL the output is exactly the same except for line with the PID:INFO: pidfile created : '/QOpenSys/pkgs/lib/activemq/data/activemq.pid'
program):
Here's the CL command (using the IBM recommended method to run a PASE
QSH CMD('/QOpenSys/usr/bin/sh -c "/QOpenSys/pkgs/bin/activemq start"')--
Anyone have any suggestions?
TIA
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.
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 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.