I just can't get dcmd or activemq to start up.
activemq.log no new entries
karaf.log no new entries,
The errors say permission denied, Running as root
-- Unit activemq.service has begun starting up.
Dec 13 13:25:37 <HOST> systemd[1875]: dcmd.service: Failed to execute command: Permission denied
Dec 13 13:25:37 <HOST> systemd[1876]: activemq.service: Failed to execute command: Permission denied
Dec 13 13:25:37 <HOST> systemd[1876]: activemq.service: Failed at step EXEC spawning /opt/IMDataCollector/scripts/activemq: Permission denied
-- Subject: Process /opt/IMDataCollector/scripts/activemq could not be executed
-- Defined-By: systemd
--
-- The process /opt/IMDataCollector/scripts/activemq could not be executed and failed.
--
-- The error number returned by this process is 13.
Dec 13 13:25:37 <HOST> systemd[1875]: dcmd.service: Failed at step EXEC spawning /opt/IMDataCollector/scripts/dcmd: Permission denied
-- Subject: Process /opt/IMDataCollector/scripts/dcmd could not be executed
-- Defined-By: systemd
--
-- The process /opt/IMDataCollector/scripts/dcmd could not be executed and failed.
--
-- The error number returned by this process is 13.
Dec 13 13:25:37 <HOST> systemd[1]: dcmd.service: Control process exited, code=exited status=203
Dec 13 13:25:37 <HOST> systemd[1]: dcmd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
--
-- The unit dcmd.service has entered the 'failed' state with result 'exit-code'.
Dec 13 13:25:37 <HOST> systemd[1]: Failed to start Data Collector.
-- Subject: Unit dcmd.service has failed
-- Defined-By: systemd
--
-- Unit dcmd.service has failed.
--
-- The result is failed.
Dec 13 13:25:37 <HOST> systemd[1]: activemq.service: Control process exited, code=exited status=203
Dec 13 13:25:37 <HOST> systemd[1]: activemq.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
--
-- The unit activemq.service has entered the 'failed' state with result 'exit-code'.
Dec 13 13:25:37 <HOST> systemd[1]: Failed to start Apache ActiveMQ.
-- Subject: Unit activemq.service has failed
-- Defined-By: systemd
--
-- Unit activemq.service has failed.
--
-- The result is failed.
Rocky 8
Performance Management 22.2.5
SELINUX was enabled
To permanently disable SELINUX
1. To disable selinux edit its configuration file by typing, as root:
vi /etc/selinux/config and Enter. A vi edit view will appear.
2. Type i to begin editing. The up, down, left & right arrows must be used to navigate through this configuration.
3. Change the line: SELINUX=enforcing to SELINUX=disabled. Hit the Esc key once, while holding Shift press the : (colon) key once and release.
4. Now type wq and hit Enter; this will write the changes to the file. To exit without making any changes, instead of wq type q! and hit Enter.
5. Reboot