$ /etc/init.d/mcu_service stop
mcu_service stopped
$ ps -ef | grep mcu
root 5481 1518 0 14:16 pts/0 00:00:00 grep --color=auto mcu
$ systemctl disable mcu_service
mcu_service.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig mcu_service off
$ mv /etc/init.d/mcu_service /tmp/
$ vi /usr/lib/systemd/system/mcu_service.service
### Add the following to the file:
# Systemd unit file for mcu_service
[Unit]
Description=One Identity Management Console for Unix
After=network.target
Wants=network-online.target
[Service]
#EnvironmentFile=/opt/quest/mcu/scripts/common.sh
ExecStart=/opt/quest/mcu/mcu_service start
KillMode=process
Type=forking
[Install]
WantedBy=multi-user.target
#### save the file
$ systemctl enable mcu_service
Created symlink from /etc/systemd/system/multi-user.target.wants/mcu_service.service to /usr/lib/systemd/system/mcu_service.service.
$ systemctl start mcu_service
$ systemctl status mcu_service
● mcu_service.service - One Identity Management Console for Unix
Loaded: loaded (/usr/lib/systemd/system/mcu_service.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2019-02-25 14:21:06 EST; 5s ago
Process: 5595 ExecStart=/opt/quest/mcu/mcu_service start (code=exited, status=0/SUCCESS)
Main PID: 6333 (java)
CGroup: /system.slice/mcu_service.service
└─6333 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-2.b14.el7.x86_64/jre/bin/java -server -Dinstall4j.jvmDir=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-2.b14.el7...
Feb 25 14:21:04 rhel75-64-cpr systemd[1]: Starting One Identity Management Console for Unix...
Feb 25 14:21:06 rhel75-64-cpr mcu_service[5595]: Starting mcu_service
Feb 25 14:21:06 rhel75-64-cpr systemd[1]: Started One Identity Management Console for Unix.
### Reboot the system to validate that mcu starts on reboot
$ reboot now
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center