Does APM Command Center Agent Controller 10.5 support systemd of RHEL7?

Document ID : KB000013942
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Does APM Command Center Agent Controller 10.5 support systemd of RHEL7?
Is the installation of APM Command Center Agent Controller possible on the systemd environment of RHEL7?

The apmccctrl.sh script includs the following explanation.
---------apmccctrl.sh---------------------
# flag for using upstart when installing (rather than init.d rc.d)
USE_UPSTART=
# flag for using systemd when installing
USE_SYSTEMD=
-------------------------------------------

If APM Command Center Agent Controller supports systemd,
Is the installation of systemd possible just to describe "USE_SYSTEMD=true"?
Or is there necessary setting?

Answer:

RHEL7 is supported for APM Command Center Agent Controller 10.5.

Installing the CA APM Command Center Agent Controller daemon using systemd:
Follow these steps:
a. Open the APMCommandCenterController/apmccctrl.sh file.

b. Find the following lines.
   # flag for using systemd when installing
   USE_SYSTEMD=

c. Set true and Save.
   USE_SYSTEMD=true

d. Run the install command.
    APMCommandCenterController/apmccctrl.sh install
-------------
[root@xxxx APMCommandCenterController]# ./apmccctrl.sh install
Detected RHEL or Fedora:
Installing the CA APM Command Center Agent Controller daemon using systemd..
creating default service file..
-------------

e. Verify that the daemon is installed and running.
    APMCommandCenterController/apmccctrl.sh status
-------------
[root@xxxx APMCommandCenterController]# ./apmccctrl.sh status
CA APM Command Center Agent Controller is running: PID:28629, Wrapper:STARTED, Java:STARTED
-------------

f. Verify the state of the service.
   APMCommandCenterController/systemctl status apmccctrl.service
-------------
[root@xxxx APMCommandCenterController]# systemctl status apmccctrl.service
. apmccctrl.service - CA APM Command Center Agent Controller
  Loaded: loaded (/etc/systemd/system/apmccctrl.service; enabled; vendor preset: disabled)
  Active: active (running) since Fri 2017-03-31 00:29:12 GMT; 4min 13s ago
 Process: 28558 ExecStart=/root/CommandCenterServer/package/APMCommandCenterController/./apmccctrl.sh start (code=exited, status=0/SUCCESS)
Main PID: 28629 (wrapper-linux-x)
  CGroup: /system.slice/apmccctrl.service
          |_ 28629 /root/CommandCenterServer/package/APMCommandCenterController/./bin/w...
          |_ 28631 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64/jre/bin/ja...

Mar 31 00:28:56 toyto01-I191505 systemd[1]: Starting CA APM Command Center Agent Cont.....
Mar 31 00:28:56 toyto01-I191505 apmccctrl.sh[28558]: Starting CA APM Command Center Ag....
Mar 31 00:29:09 toyto01-I191505 apmccctrl.sh[28558]: Waiting for CA APM Command Center....
Mar 31 00:29:12 toyto01-I191505 apmccctrl.sh[28558]: ...running: PID:28629
Mar 31 00:29:12 toyto01-I191505 systemd[1]: Started CA APM Command Center Agent Contr...r.
Hint: Some lines were ellipsized, use -l to show in full.
-------------