Steps to follow:
1. Stop the OpManager.
2. Extract the attached file(LinuxAsService_Linux_7.zip) and move the below mentioned files into /opt/ManageEngine/OpManager/bin directory.
3. Login as su or root user, open terminal and go to /opt/ManageEngine/OpManager/bin/ directory.
4. run "chmod 777 * " command to give permission to the new files.
5. Execute the LinkAsService_linux_7.sh script.
6. It will add the opmanager as service.
7. Make sure the hostname is added in the /etc/hosts file.
If not added means ,add it like below and save it.
Ex : If your host name is my-host-opm
8. Try reboot the machine and check the status.
You can use
systemctl start opmanager.service - to start the Opmanager
systemctl status opmanager.service - to get the status of Opmanager Application.
Once you have followed the above steps to add Opmanager As service.
You can use the below command to start, stop, restart, get the status of Opmanager.
Login as super user, Go to /opt/ManageEngine/OpManager/bin/ directory and use below commands.
To Start Opmanager - ./opm_service start
To Stop Opmanager - ./opm_service stop <Opmanager_username> <Opmanager_Password>
To restart Opmanager - ./opm_service restart
To get status of Opmanager - ./opm_service status